root/trunk/build/quickstart/linux/initdir

Revision 1948 (checked in by johnsa, 5 years ago)

windows directory batch files almost complete

  • Property svn:mergeinfo set to
Line 
1 #! /bin/sh
2
3 #
4 # This file is included by the quickstart script file "bwinitdir" so that it can live
5 # within the svn repository.
6 #
7
8 ANT_HOME=`dirname "$PRG"`/apache-ant-1.7.0
9 ANT_HOME=`cd "$ANT_HOME" && pwd`
10
11 usage() {
12   echo "  $PRG help | ? "
13   echo ""
14   echo "   Invokes ant to build the Bedework tools then uses that tool to "
15   echo "   initialise the directory."
16   echo ""
17 }
18
19 errorUsage() {
20   echo "*******************************************************"
21   echo "Error: $1"
22   echo "*******************************************************"
23   usage
24   exit 1
25 }
26
27 saveddir=`pwd`
28
29 export QUICKSTART_HOME=$saveddir
30
31 if [ -z "$JAVA_HOME" -o ! -d "$JAVA_HOME" ] ; then
32   errorUsage "JAVA_HOME is not defined correctly for Bedework."
33 fi
34
35 CLASSPATH=$ANT_HOME/lib/ant-launcher.jar
36
37 ant_home_def="-Dant.home=$ANT"
38 ant_class_def="org.apache.tools.ant.launch.Launcher"
39
40 $JAVA_HOME/bin/java -classpath $CLASSPATH $ant_home_def $ant_class_def initDir
Note: See TracBrowser for help on using the browser.