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

Last change on this file was 38735, checked in by davidb, 3 months ago

It appears we haven't run the top-level script for this extension for quite some time. These edits bring the compiling/installing scripts in line with the newer version of the file (now a .tar.gz), and the simplified directory structure

File size: 954 bytes
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 tar xvzf "$JOD_CONVERTER-dist.tar.gz"
9
10 cd "$JOD_CONVERTER" \
11 && jar xvf "$JOD_CONVERTER-sources.jar" \
12 && cd ..
13fi
14
15
16cd "$JOD_CONVERTER"
17
18if [ $GSDLOS = "windows" ] ; then
19 # Running under Cygwin or MinGW/MSys
20 cp=`ls lib/*.jar | tr '\n' ';'`
21else
22 cp=`ls lib/*.jar | tr '\n' ':'`
23fi
24
25cp_with_spaces=`ls lib/*.jar | tr '\n' ' '`
26
27javac -classpath ".:$cp" org/artofsolving/jodconverter/cli/Convert.java \
28 && \
29echo "Manifest-Version: 1.0" > Manifest.txt && \
30echo "Created-By: Greenstone Digital Library Project" >> Manifest.txt && \
31echo "Main-Class: org.artofsolving.jodconverter.cli.Convert" >> Manifest.txt && \
32echo "Class-Path: $cp_with_spaces" >> Manifest.txt \
33 && \
34jar cvfm jodconverter.jar Manifest.txt org conf document-formats.js
35
36cd ..
37
Note: See TracBrowser for help on using the repository browser.