source: release-kits/shared/linux/rk@ 16732

Last change on this file since 16732 was 16732, checked in by oranfry, 16 years ago

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

  • Property svn:executable set to *
File size: 1.5 KB
RevLine 
[16540]1#pre checks
2
3if [ "$rk_name" == "" ]; then
4 echo "rk_name not set";
5 exit;
6elif [ "$RK_HOME" == "" ]; then
7 echo "RK_HOME not set";
8 exit
9fi
10
11function show_help {
12
13 echo "$rk_name - $rk_fullname"
14 echo "Helps you to create releases from the Repository"
15 echo
16 echo "usage: $rk_name [-sim] [-from <target>] [other-args]"
17 echo " -sim"
18 echo " simulation only, don't actually do anything"
19 echo
20 echo " -from <target>"
21 echo " start execution from the target with the given target address"
22 echo
[16732]23 echo " -to <target>"
24 echo " stop execution just before the target with the given target address"
25 echo
26 echo
[16540]27 echo " -descend <target>"
[16732]28 echo " execute only the target with the given address, including subtargets"
[16540]29 echo
30 echo " -cp"
31 echo " show the classpath being used by $rk_name"
32
33}
34
35#work out the classpath
36CLASSPATH=$JAVA_HOME/lib/tools.jar
37for file in $RK_HOME/lib/*.jar; do
38 CLASSPATH=$CLASSPATH:$file
39done
40for file in $RK_HOME/packages/ant/lib/*.jar; do
41 CLASSPATH=$CLASSPATH:$file
42done
43for file in $RK_HOME/packages/ant-installer/lib/*.jar; do
44 CLASSPATH=$CLASSPATH:$file
45done
46CLASSPATH=$CLASSPATH:$RK_HOME/packages/ant-installer/classes
47
[16732]48#set ANT_HOME
49export ANT_HOME=$RK_HOME/packages/ant
50
[16540]51#create the command
[16732]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"
[16540]53
54#pass on the arguments
55while [ "$1" != "" ]; do
56
57 if [ "$1" == "-help" ]; then
58 show_help
59 exit
60 elif [ "$1" == "-cp" ]; then
61 echo $CLASSPATH
62 exit
63 else
64 toexec="$toexec $1"
65 shift
66 fi
67
68done
Note: See TracBrowser for help on using the repository browser.