Changeset 16544
- Timestamp:
- 2008-07-25T11:36:44+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release-kits/mark2/bin/mark2
r16451 r16544 1 function show_help { 2 echo "mark2 - the MAc Release Kit for greenstone2" 3 echo "Helps you to create releases of Greenstone2 from the Repository" 4 echo 5 echo "usage: mark2 [-sim] [-descend] [-from <target>] [-to <target>] [other-args]" 6 echo " -sim" 7 echo " (shortcut for -Dexecute=false)" 8 echo " simulation only, don't actually do anything" 9 echo 10 echo " -from <target>" 11 echo " (shortcut for -Dresume.from=<target>)" 12 echo " start execution from the target with the given target address" 13 echo " first level targets can be referred to by name. E.g., -from compile is the same as -from 1" 14 echo 15 echo " -descend" 16 echo " (shortcut for -Dresume.mode=descend)" 17 echo " execute only the descendents of the target specified with -from" 18 echo " for example, with -from 3 -descend, targets 3.1, 3.2, 3.3 etc. would be executed, but execution 19 echo " would stop before target 4 20 echo 21 echo " -cp" 22 echo " show the classpath being used by mark2" 23 24 } 1 rk_name="mark2" 2 rk_fullname="Mac Release Kit for Greenstone2" 3 RK_HOME=$MARK2_HOME 4 source $MARK2_HOME/linux/rk 25 5 26 #work out the classpath27 CLASSPATH=$JAVA_HOME/lib/tools.jar28 for file in $MARK2_HOME/lib/*.jar; do29 CLASSPATH=$CLASSPATH:$file30 done31 for file in $MARK2_HOME/packages/ant/lib/*.jar; do32 CLASSPATH=$CLASSPATH:$file33 done34 for file in $MARK2_HOME/packages/ant-installer/lib/*.jar; do35 CLASSPATH=$CLASSPATH:$file36 done37 CLASSPATH=$CLASSPATH:$MARK2_HOME/packages/ant-installer/classes38 39 #create the command40 toexec="$MARK2_HOME/packages/ant/bin/ant -lib `pwd`/installer/classes -f $MARK2_HOME/ant-scripts/build.xml -Dbasedir=`pwd` -Dmark2.home=$MARK2_HOME"41 42 #pass on the arguments43 while [ "$1" != "" ]; do44 45 if [ "$1" == "-help" ]; then46 show_help47 exit48 49 elif [ "$1" == "-cp" ]; then50 echo $CLASSPATH51 exit52 53 elif [ "$1" == "-sim" ]; then54 toexec="$toexec -Dexecute=false"55 shift56 57 elif [ "$1" == "-descend" ]; then58 toexec="$toexec -Dresume.mode=descend"59 shift60 61 elif [ "$1" == "-from" ]; then62 63 toexec="$toexec -Dresume.from="64 from=`echo $2 | sed 's/compile/1/g' | sed 's/create-distributions/2/g' | sed 's/create-installer/3/g' | sed 's/wrap/4/g'`65 toexec=$toexec$from66 shift 267 68 elif [ "$1" == "-to" ]; then69 70 toexec="$toexec -Dresume.to="71 to=`echo $2 | sed 's/compile/1/g' | sed 's/create-distributions/2/g' | sed 's/create-installer/3/g' | sed 's/wrap/4/g'`72 toexec=$toexec$to73 shift 274 75 76 else77 toexec="$toexec $1"78 shift79 fi80 81 done82 83 #echo $toexec84 6 echo "O---------------------------------------O" 85 7 echo "| |" … … 88 10 echo "| |" 89 11 echo "O---------------------------------------O" 90 echo "Basedir : `pwd`"91 12 92 13 $toexec
Note:
See TracChangeset
for help on using the changeset viewer.