Ignore:
Timestamp:
12/22/09 14:52:32 (11 years ago)
Author:
oranfry
Message:

moving specific stuff out of general area

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/release-kits/bin/rk

    r21388 r21394  
    1313
    1414function 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"
    2719}
    2820
     
    3628        rk_fullname="Release Kit for Greenstone3"
    3729else
    38     echo "Unrecognised release-kit name '$rk_name'" >&2
     30    show_help
    3931    exit
    4032fi
     
    4335#cd up a level or two if needed
    4436if [ -e "$rk_name-build.properties" ]; then
    45     pushd .
     37    pushd . &>/dev/null
    4638elif [ -e "../$rk_name-build.properties" ]; then
    47     pushd ..
     39    pushd .. &>/dev/null
    4840elif [ -e "../../$rk_name-build.properties" ]; then
    49     pushd ../..
     41    pushd ../.. &>/dev/null
    5042else
    5143    echo "couldn't find file $rk_name-build.properties"
     
    5850
    5951#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"
     52toexec="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\""
    6153
    6254#pass on the arguments
     
    6961        show_cmd=true
    7062    else
    71         toexec="$toexec $1"
     63        toexec="$toexec \"$1\""
    7264    fi
    7365    shift
     
    8577
    8678#go back to original dir
    87 popd
     79popd &>/dev/null
Note: See TracChangeset for help on using the changeset viewer.