source: gs2-extensions/open-office/trunk/COMPILE-INSTALL.sh@ 22229

Last change on this file since 22229 was 22229, checked in by davidb, 12 years ago

Minor tweaks

File size: 723 bytes
Line 
1#!/bin/bash
2
3
4source setup.bash
5
6export JOD_CONVERTER=jodconverter-core-3.0-beta-3
7
8if [ "x$GEXTOPENOFFICE" != "x" ] ; then
9
10 javac -version
11 if [ $? != 0 ] ; then
12 echo "Unable to locate 'javac'"
13 echo "Have you set JAVA_HOME and put JAVA_HOME/bin in your path?"
14 exit
15 fi
16
17 echo Compiling Code
18
19 pushd "$GEXTOPENOFFICE/build-srcpack/packages"
20
21 ./COMPILE-INSTALL.sh
22
23 popd
24
25 if [ ! -d lib/java ] ; then
26 echo ""
27 echo "Creating lib/java"
28 mkdir -p lib/java
29 fi
30
31 echo ""
32 echo "Installing jodconverter.jar into lib/java"
33 /bin/cp -r $GEXTOPENOFFICE/build-srcpack/packages/$JOD_CONVERTER/jodconverter.jar lib/java/.
34
35
36else
37 echo "Error: Environment variable GEXTOPENOFICE is not set"
38fi
39
Note: See TracBrowser for help on using the repository browser.