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