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

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

up the memory available to java during release process

  • Property svn:executable set to *
File size: 1.8 KB
Line 
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 " -help"
21 echo " show this help screen"
22 echo
23 echo " -from <target>"
24 echo " start execution from the target with the given target address"
25 echo
26 echo " -to <target>"
27 echo " stop execution just before the target with the given target address"
28 echo
29 echo " -descend <target>"
30 echo " execute only the target with the given address, including subtargets"
31 echo
32 echo " -cp"
33 echo " show the classpath being used by $rk_name"
34
35}
36
37#work out the classpath
38CLASSPATH=$JAVA_HOME/lib/tools.jar
39for file in $RK_HOME/lib/*.jar; do
40 CLASSPATH=$CLASSPATH:$file
41done
42for file in $RK_HOME/packages/ant/lib/*.jar; do
43 CLASSPATH=$CLASSPATH:$file
44done
45for file in $RK_HOME/packages/ant-installer/lib/*.jar; do
46 CLASSPATH=$CLASSPATH:$file
47done
48CLASSPATH=$CLASSPATH:$RK_HOME/packages/ant-installer/classes
49
50export CLASSPATH
51
52#set ANT_HOME
53export ANT_HOME=$RK_HOME/packages/ant
54
55#create the command
56toexec="ANT_OPTS=-Xmx800M $ANT_HOME/bin/ant -addressing -lib `pwd`/installer/classes -f $RK_HOME/ant-scripts/build.xml -Dbasedir=`pwd` -D$rk_name.home=$RK_HOME"
57
58#pass on the arguments
59while [ "$1" != "" ]; do
60
61 if [ "$1" == "-help" ]; then
62 show_help
63 exit
64 elif [ "$1" == "-cp" ]; then
65 echo $CLASSPATH
66 exit
67 elif [ "$1" == "-sim" ]; then
68 toexec="$toexec $1"
69 sim_mode=on
70 else
71 toexec="$toexec $1"
72 fi
73 shift
74
75done
76
77#create directories
78if [ "$sim_mode" != "on" ]; then
79 if [ ! -d "installer/classes" ]; then mkdir -p installer/classes; fi
80fi
Note: See TracBrowser for help on using the repository browser.