aboutsummaryrefslogtreecommitdiffstats
path: root/examples/mathml/build.sh
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2003-01-29 16:25:25 +0000
committerJeremias Maerki <jeremias@apache.org>2003-01-29 16:25:25 +0000
commit3bb877507c6bbeb32ca72d0aa2196f2203e6de09 (patch)
treefe9a69b9d2421583735732462c3fe27ca8153677 /examples/mathml/build.sh
parent5b2e97ba5b0fc57ba7e5edf1acdba8da31065eef (diff)
downloadxmlgraphics-fop-3bb877507c6bbeb32ca72d0aa2196f2203e6de09.tar.gz
xmlgraphics-fop-3bb877507c6bbeb32ca72d0aa2196f2203e6de09.zip
Move over from contrib/mathml
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195908 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'examples/mathml/build.sh')
-rw-r--r--examples/mathml/build.sh30
1 files changed, 30 insertions, 0 deletions
diff --git a/examples/mathml/build.sh b/examples/mathml/build.sh
new file mode 100644
index 000000000..986d3c1e3
--- /dev/null
+++ b/examples/mathml/build.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+echo
+echo "MathML Build System"
+echo "---------------------"
+echo
+
+if [ "$JAVA_HOME" = "" ] ; then
+ echo "ERROR: JAVA_HOME not found in your environment."
+ echo
+ echo "Please, set the JAVA_HOME variable in your environment to match the"
+ echo "location of the Java Virtual Machine you want to use."
+ exit 1
+fi
+LIBDIR=../../lib
+LOCALCLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/classes.zip
+LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/ant.jar
+LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/xml-apis.jar
+LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/xercesImpl-2.2.1.jar
+LOCALCLASSPATH=$LOCALCLASSPATH:$LIBDIR/xalan-2.4.1.jar
+ANT_HOME=$LIBDIR
+
+echo
+CP=$LOCALCLASSPATH
+echo Building with classpath $CP
+
+
+echo Starting Ant...
+echo
+
+$JAVA_HOME/bin/java -Dant.home=$ANT_HOME -classpath "$CP" org.apache.tools.ant.Main $*