Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
814 mhunt 1
#!/bin/bash
2
 
3
#ABT_HOME may be set in .bash_profile, to become centric to this when Release Planner dies
822 mhunt 4
ABT_HOME=/home/buildadm/buildtool
820 mhunt 5
ABT_WORK=/home/buildadm/abt`hostname`
814 mhunt 6
#GBE_ABT, UNC, UNCNATIVEMAP set in .bash_profile
7
JAR=$ABT_HOME/abtdD.jar
8
 
9
export ABT_HOME
10
# do not export ABT_WORK JAR
11
 
12
if [ "x$GBE_RM_LOCATION" = "x" ] ; then
13
	echo Error: Program abtlaunch
14
	echo Error: EnvVar GBE_RM_LOCATION not set
15
	echo Error: This is set within /etc/profile
16
	exit 1
17
fi
18
 
19
if [ "x$GBE_RM_USERNAME" = "x" ] ; then
20
	echo Error: Program abtlaunch
21
	echo Error: EnvVar GBE_RM_USERNAME not set
22
	echo Error: This is set within /etc/profile
23
	exit 1
24
fi
25
 
26
if [ "x$GBE_RM_PASSWORD" = "x" ] ; then
27
	echo Error: Program abtlaunch
28
	echo Error: EnvVar GBE_RM_PASSWORD not set
29
	echo Error: This is set within /etc/profile
30
	exit 1
31
fi
32
 
33
if [ "x$JAVA_HOME_1_6" = "x" ] ; then
34
	echo Error: Program abtlaunch
35
	echo Error: EnvVar JAVA_HOME_1_6 not set
36
	echo Error: This is set within /etc/profile
37
	exit 1
38
fi
39
 
40
if [ ! -x $JAVA_HOME_1_6/bin/java ] ; then
41
 	echo Error: Program abtlaunch
42
	echo Error: The java program does not exist
43
	echo Error: Location: $JAVA_HOME_1_6/bin/java
44
	exit 1
45
fi
46
 
47
if [ ! -f $JAR ] ; then
48
 	echo Error: Program abtlaunch
49
	echo Error: Required Jar does not exist
50
	exit 1
51
fi
52
 
848 dpurdie 53
if [ ! -d $ABT_WORK ] ; then
54
	echo Error: Program abtlaunch
55
	echo Error: The ABT work directory does not exist
56
	echo Error: Dir: $ABT_WORK
57
	exit 1
58
fi
59
 
60
 
814 mhunt 61
PATH=$ABT_HOME:$PATH
62
cd $ABT_WORK
820 mhunt 63
rm -f *.log
64
rm -f *.xml
814 mhunt 65
 
66
$JAVA_HOME_1_6/bin/java -jar $JAR -c $GBE_RM_LOCATION -u $GBE_RM_USERNAME -p $GBE_RM_PASSWORD