Changeset 21394 for main/trunk/release-kits/bin
- Timestamp:
- 2009-12-22T14:52:32+13:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/release-kits/bin/rk
r21388 r21394 13 13 14 14 function show_help { 15 echo "$rk_name - $rk_fullname" 16 echo "Automatically creates Greenstone releases" 17 echo 18 echo "usage: $rk_name [-help|-cmd] [ANT_ARGS]" 19 echo " -help" 20 echo " show this help screen" 21 echo 22 echo " -cmd" 23 echo " show the ant command being used by $rk_name" 24 echo 25 echo " ANT_ARGS" 26 echo " Additional arguments to be passed to ant" 15 echo "usage: {rk2|rk3|sork2|sork2|cdrk2|derk} [-help|-cmd] [ANT_ARGS]" 16 echo " -help show this help screen" 17 echo " -cmd show the ant command being used by the releas kit" 18 echo " ANT_ARGS additional arguments to be passed to ant" 27 19 } 28 20 … … 36 28 rk_fullname="Release Kit for Greenstone3" 37 29 else 38 echo "Unrecognised release-kit name '$rk_name'" >&230 show_help 39 31 exit 40 32 fi … … 43 35 #cd up a level or two if needed 44 36 if [ -e "$rk_name-build.properties" ]; then 45 pushd . 37 pushd . &>/dev/null 46 38 elif [ -e "../$rk_name-build.properties" ]; then 47 pushd .. 39 pushd .. &>/dev/null 48 40 elif [ -e "../../$rk_name-build.properties" ]; then 49 pushd ../.. 41 pushd ../.. &>/dev/null 50 42 else 51 43 echo "couldn't find file $rk_name-build.properties" … … 58 50 59 51 #create the command 60 toexec="ant -lib `pwd`/installer/classes -f $RK_HOME/kits/$rk_name/ant-scripts/build.xml -Dbasedir=`pwd` -D$rk_name.home=$RK_HOME"52 toexec="ant -lib \"`pwd`/installer/classes\" -f \"$RK_HOME/kits/$rk_name/ant-scripts/build.xml\" \"-Dbasedir=`pwd`\" \"-Drk.home=$RK_HOME\" \"-Drk.name=$rk_name\"" 61 53 62 54 #pass on the arguments … … 69 61 show_cmd=true 70 62 else 71 toexec="$toexec $1"63 toexec="$toexec \"$1\"" 72 64 fi 73 65 shift … … 85 77 86 78 #go back to original dir 87 popd 79 popd &>/dev/null
Note:
See TracChangeset
for help on using the changeset viewer.