source: gs2-extensions/open-office/trunk/src/packages/COMPILE-INSTALL.sh@ 27959

Last change on this file since 27959 was 27959, checked in by sjm84, 11 years ago

Renaming build-srcpack to packages

File size: 919 bytes
RevLine 
[22204]1#!/bin/bash
2
[22250]3source ../../cascade-make/lib/cascade-lib.bash GEXT_OPENOFFICE ../../ $*
[22204]4
5if [ ! -e "$JOD_CONVERTER" ] ; then
6 echo "Unzipping JodConverter Core"
7 unzip "$JOD_CONVERTER-dist.zip"
8
9 cd "$JOD_CONVERTER" \
10 && jar xvf "$JOD_CONVERTER-sources.jar" \
11 && cd ..
12fi
13
14
15cd "$JOD_CONVERTER"
16
[22248]17if [ $GSDLOS = "windows" ] ; then
[22250]18 # Running under Cygwin or MinGW/MSys
[22204]19 cp=`ls lib/*.jar | tr '\n' ';'`
20else
21 cp=`ls lib/*.jar | tr '\n' ':'`
22fi
23
24cp_with_spaces=`ls lib/*.jar | tr '\n' ' '`
25
[22499]26javac -classpath ".:$cp" org/artofsolving/jodconverter/cli/Convert.java \
[22204]27 && \
28echo "Manifest-Version: 1.0" > Manifest.txt && \
29echo "Created-By: Greenstone Digital Library Project" >> Manifest.txt && \
30echo "Main-Class: org.artofsolving.jodconverter.cli.Convert" >> Manifest.txt && \
31echo "Class-Path: $cp_with_spaces" >> Manifest.txt \
32 && \
[22706]33jar cvfm jodconverter.jar Manifest.txt org conf document-formats.js
[22204]34
35cd ..
36
Note: See TracBrowser for help on using the repository browser.