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

Revision 27959, 0.9 KB (checked in by sjm84, 6 years ago)

Renaming build-srcpack to packages

Line 
1#!/bin/bash
2
3source ../../cascade-make/lib/cascade-lib.bash GEXT_OPENOFFICE ../../ $*
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
17if [ $GSDLOS = "windows" ] ; then
18  # Running under Cygwin or MinGW/MSys
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
26javac -classpath ".:$cp" org/artofsolving/jodconverter/cli/Convert.java \
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 && \
33jar cvfm jodconverter.jar Manifest.txt org conf document-formats.js
34
35cd ..
36
Note: See TracBrowser for help on using the browser.