61 echo "exit status was $status"
62 exit $status
63 } #end of fail()
64
65 #Call this from anywhere to pass the test with a message
66 # usage: pass "reason why the test passed if applicable"
67 pass()
68 { echo "The test passed!!!"
69 echo "$*" 1>&2
70 exit 0
71 } #end of pass()
72
73 # end of subroutines
74
75
76 # The beginning of the script proper
77
78 # Checking for proper OS
79 OS=`uname -s`
80 case "$OS" in
81 SunOS )
82 VAR="One value for Sun"
83 DEFAULT_JDK=/
84 FILESEP="/"
85 PATHSEP=":"
86 TMP="/tmp"
87 ;;
88
89 Linux )
90 VAR="A different value for Linux"
91 DEFAULT_JDK=/
92 FILESEP="/"
93 PATHSEP=":"
94 TMP="/tmp"
95 ;;
96
97 AIX )
98 VAR="A different value for AIX"
99 DEFAULT_JDK=/
100 FILESEP="/"
101 PATHSEP=":"
102 TMP="/tmp"
103 ;;
104
105 Darwin )
106 VAR="A different value for MacOSX"
107 DEFAULT_JDK=/usr
108 FILESEP="/"
|
61 echo "exit status was $status"
62 exit $status
63 } #end of fail()
64
65 #Call this from anywhere to pass the test with a message
66 # usage: pass "reason why the test passed if applicable"
67 pass()
68 { echo "The test passed!!!"
69 echo "$*" 1>&2
70 exit 0
71 } #end of pass()
72
73 # end of subroutines
74
75
76 # The beginning of the script proper
77
78 # Checking for proper OS
79 OS=`uname -s`
80 case "$OS" in
81 Linux )
82 VAR="A different value for Linux"
83 DEFAULT_JDK=/
84 FILESEP="/"
85 PATHSEP=":"
86 TMP="/tmp"
87 ;;
88
89 AIX )
90 VAR="A different value for AIX"
91 DEFAULT_JDK=/
92 FILESEP="/"
93 PATHSEP=":"
94 TMP="/tmp"
95 ;;
96
97 Darwin )
98 VAR="A different value for MacOSX"
99 DEFAULT_JDK=/usr
100 FILESEP="/"
|