Changeset 16655 for release-kits/mark3/bin
- Timestamp:
- 2008-08-06T15:07:41+12:00 (14 years ago)
- Location:
- release-kits/mark3
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
release-kits/mark3
- Property svn:externals
-
old new 2 2 linux http://svn.greenstone.org/release-kits/shared/linux 3 3 greenstone3 http://svn.greenstone.org/release-kits/shared/greenstone3 4 mac http://svn.greenstone.org/release-kits/shared/mac 4 5
-
- Property svn:externals
-
release-kits/mark3/bin/mark3
r16526 r16655 1 function show_help { 2 echo "lirk3 - the LInux Release Kit for greenstone3" 3 echo "Helps you to create releases of Greenstone3 from the Repository" 4 echo 5 echo "usage: lirk3 [-sim] [-from <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 LiRK3" 23 echo " (like `ant --diagnostics`)" 24 25 } 1 rk_name="mark3" 2 rk_fullname="Mac Release Kit for Greenstone3" 3 RK_HOME=$MARK3_HOME 4 source $MARK3_HOME/linux/rk 26 5 27 #work out the classpath28 CLASSPATH=$JAVA_HOME/lib/tools.jar29 for file in $LIRK3_HOME/lib/*.jar; do30 CLASSPATH=$CLASSPATH:$file31 done32 for file in $LIRK3_HOME/packages/ant/lib/*.jar; do33 CLASSPATH=$CLASSPATH:$file34 done35 for file in $LIRK3_HOME/packages/ant-installer/lib/*.jar; do36 CLASSPATH=$CLASSPATH:$file37 done38 CLASSPATH=$CLASSPATH:$LIRK3_HOME/packages/ant-installer/classes39 40 41 #create the command42 toexec="$LIRK3_HOME/packages/ant/bin/ant -lib `pwd`/installer/classes -f $LIRK3_HOME/ant-scripts/build.xml -Dbasedir=`pwd` -Dlirk3.home=$LIRK3_HOME"43 44 #pass on the arguments45 while [ "$1" != "" ]; do46 47 if [ "$1" == "-help" ]; then48 show_help49 exit50 51 elif [ "$1" == "-cp" ]; then52 echo $CLASSPATH53 exit54 55 elif [ "$1" == "-sim" ]; then56 toexec="$toexec -Dexecute=false"57 shift58 59 elif [ "$1" == "-descend" ]; then60 toexec="$toexec -Dresume.mode=descend"61 shift62 63 elif [ "$1" == "-from" ]; then64 65 toexec="$toexec -Dresume.from="66 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'`67 toexec=$toexec$from68 shift 269 70 elif [ "$1" == "-to" ]; then71 72 toexec="$toexec -Dresume.to="73 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'`74 toexec=$toexec$to75 shift 276 77 78 else79 toexec="$toexec $1"80 shift81 fi82 83 done84 85 #echo $toexec86 6 echo "O---------------------------------------O" 87 7 echo "| |" 88 echo "| LiRK3 |"89 echo "| Linux Release Kit for Greenstone3|"8 echo "| Mark3 |" 9 echo "| Mac Release Kit for Greenstone3 |" 90 10 echo "| |" 91 11 echo "O---------------------------------------O" 92 echo "Basedir : `pwd`"93 12 94 13 $toexec 14
Note:
See TracChangeset
for help on using the changeset viewer.