root/trunk/build/quickstart/initdir

Revision 1915 (checked in by douglm, 5 years ago)

Fix up code to add a user to the directory

Line 
1 #! /bin/sh
2
3 #
4 # This file is included by the quickstart script file "initdir" 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   echo "*******************************************************"
33   echo "Error: JAVA_HOME is not defined correctly for bedework."
34   echo "*******************************************************"
35   exit 1
36 fi
37
38 CLASSPATH=$ANT_HOME/lib/ant-launcher.jar
39
40 ant_home_def="-Dant.home=$ANT"
41 ant_class_def="org.apache.tools.ant.launch.Launcher"
42
43 $JAVA_HOME/bin/java -classpath $CLASSPATH $ant_home_def $ant_class_def initDir
Note: See TracBrowser for help on using the browser.