source: gs2-extensions/open-office/trunk/build-srcpack/packages/COMPILE-INSTALL.sh@ 22250

Last change on this file since 22250 was 22250, checked in by davidb, 14 years ago

Refactoring of hame from GEXTOPENOFFICE to GEXT_OPENOFFICE

File size: 916 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
26javac -cp ".:$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 lib conf document-formats.js
34
35cd ..
36
Note: See TracBrowser for help on using the repository browser.