Changeset 16732


Ignore:
Timestamp:
2008-08-13T09:17:53+12:00 (13 years ago)
Author:
oranfry
Message:

simplified rk script after ant took over -sim, -from, -descend and -to flags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release-kits/shared/linux/rk

    r16541 r16732  
    1616    echo "usage: $rk_name [-sim] [-from <target>] [other-args]"
    1717    echo "  -sim"
    18     echo "      (shortcut for -Dexecute=false)"
    1918    echo "      simulation only, don't actually do anything"
    2019    echo
    2120    echo "  -from <target>"
    22     echo "      (shortcut for -Dresume.from=<target>)"
    2321    echo "      start execution from the target with the given target address"
    24     echo "      first level targets can be referred to by name. E.g., -from compile is the same as -from 1"
     22    echo
     23    echo "  -to <target>"
     24    echo "      stop execution just before the target with the given target address"
     25    echo
    2526    echo
    2627    echo "  -descend <target>"
    27     echo "      (shortcut for -Dresume.descend=<target>)"
    28     echo "      execute only the descendents of the target specified with -from"
    29     echo "      for example, with -descend 3, targets 3.1, 3.2, 3.3 etc. would be executed, but execution
    30     echo "      would stop before target 4
     28    echo "      execute only the target with the given address, including subtargets"
    3129    echo
    3230    echo "  -cp"
     
    4846CLASSPATH=$CLASSPATH:$RK_HOME/packages/ant-installer/classes
    4947
     48#set ANT_HOME
     49export ANT_HOME=$RK_HOME/packages/ant
     50
    5051#create the command
    51 toexec="$RK_HOME/packages/ant/bin/ant -lib `pwd`/installer/classes -f $RK_HOME/ant-scripts/build.xml -Dbasedir=`pwd` -D$rk_name.home=$RK_HOME"
     52toexec="$ANT_HOME/bin/ant -addressing -lib `pwd`/installer/classes -f $RK_HOME/ant-scripts/build.xml -Dbasedir=`pwd` -D$rk_name.home=$RK_HOME"
    5253
    5354#pass on the arguments
     
    5758        show_help
    5859        exit
    59 
    6060    elif [ "$1" == "-cp" ]; then
    6161        echo $CLASSPATH
    6262        exit
    63 
    64     elif [ "$1" == "-sim" ]; then
    65         toexec="$toexec -Dexecute=false"
    66         shift
    67 
    68     elif [ "$1" == "-descend" ]; then
    69         toexec="$toexec -Dresume.descend="
    70         descend=`echo $2 | sed 's/compile/1/g' | sed 's/create-distributions/2/g' | sed 's/create-installer/3/g' | sed 's/wrap/4/g'`
    71         toexec=$toexec$descend
    72         shift 2
    73 
    74     elif [ "$1" == "-from" ]; then
    75 
    76         toexec="$toexec -Dresume.from="
    77         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'`
    78         toexec=$toexec$from
    79         shift 2
    80 
    81     elif [ "$1" == "-to" ]; then
    82 
    83         toexec="$toexec -Dresume.to="
    84         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'`
    85         toexec=$toexec$to
    86         shift 2
    87 
    88 
    8963    else
    9064        toexec="$toexec $1"
Note: See TracChangeset for help on using the changeset viewer.