summaryrefslogtreecommitdiffstats
path: root/site/branches/site-20070701-mvnbased/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'site/branches/site-20070701-mvnbased/build.sh')
-rwxr-xr-xsite/branches/site-20070701-mvnbased/build.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/site/branches/site-20070701-mvnbased/build.sh b/site/branches/site-20070701-mvnbased/build.sh
new file mode 100755
index 0000000000..e1ba62c8f8
--- /dev/null
+++ b/site/branches/site-20070701-mvnbased/build.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# convert the existing path to unix
+if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
+ CLASSPATH=`cygpath --path --unix "$CLASSPATH"`
+fi
+
+# Add in your .jar files first
+for i in ./lib/*.jar
+do
+ CLASSPATH=$CLASSPATH:"$i"
+done
+
+# convert the unix path to windows
+if [ "$OSTYPE" = "cygwin32" ] || [ "$OSTYPE" = "cygwin" ] ; then
+ CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
+fi
+
+BUILDFILE=build.xml
+
+java $ANT_OPTS -classpath "$CLASSPATH" \
+ org.apache.tools.ant.Main \
+ -Dant.home=$ANT_HOME \
+ -buildfile ${BUILDFILE} \
+ "$@"