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`
850 mhunt 6
GBE_ABT=1
854 mhunt 7
GBE_LOG=/net/auperaunx26/export/devl/abtlog
858 mhunt 8
GBE_UNC=\\\\auperaunx26\\abtlog
814 mhunt 9
JAR=$ABT_HOME/abtdD.jar
10
 
858 mhunt 11
export ABT_HOME GBE_ABT GBE_LOG GBE_UNC
814 mhunt 12
# do not export ABT_WORK JAR
13
 
14
if [ "x$GBE_RM_LOCATION" = "x" ] ; then
15
	echo Error: Program abtlaunch
16
	echo Error: EnvVar GBE_RM_LOCATION not set
17
	echo Error: This is set within /etc/profile
18
	exit 1
19
fi
20
 
21
if [ "x$GBE_RM_USERNAME" = "x" ] ; then
22
	echo Error: Program abtlaunch
23
	echo Error: EnvVar GBE_RM_USERNAME not set
24
	echo Error: This is set within /etc/profile
25
	exit 1
26
fi
27
 
28
if [ "x$GBE_RM_PASSWORD" = "x" ] ; then
29
	echo Error: Program abtlaunch
30
	echo Error: EnvVar GBE_RM_PASSWORD not set
31
	echo Error: This is set within /etc/profile
32
	exit 1
33
fi
34
 
35
if [ "x$JAVA_HOME_1_6" = "x" ] ; then
36
	echo Error: Program abtlaunch
37
	echo Error: EnvVar JAVA_HOME_1_6 not set
38
	echo Error: This is set within /etc/profile
39
	exit 1
40
fi
41
 
42
if [ ! -x $JAVA_HOME_1_6/bin/java ] ; then
43
 	echo Error: Program abtlaunch
44
	echo Error: The java program does not exist
45
	echo Error: Location: $JAVA_HOME_1_6/bin/java
46
	exit 1
47
fi
48
 
49
if [ ! -f $JAR ] ; then
50
 	echo Error: Program abtlaunch
51
	echo Error: Required Jar does not exist
52
	exit 1
53
fi
54
 
848 dpurdie 55
if [ ! -d $ABT_WORK ] ; then
56
	echo Error: Program abtlaunch
57
	echo Error: The ABT work directory does not exist
58
	echo Error: Dir: $ABT_WORK
59
	exit 1
60
fi
61
 
62
 
814 mhunt 63
PATH=$ABT_HOME:$PATH
64
cd $ABT_WORK
820 mhunt 65
rm -f *.log
66
rm -f *.xml
814 mhunt 67
 
854 mhunt 68
$JAVA_HOME_1_6/bin/java -jar $JAR