Subversion Repositories DevTools

Rev

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