66 echo "$*" 1>&2
67 exit 1
68 } #end of fail()
69
70 #Call this from anywhere to pass the test with a message
71 # usage: pass "reason why the test passed if applicable"
72 pass()
73 { echo "The test passed!!!"
74 echo "$*" 1>&2
75 exit 0
76 } #end of pass()
77
78 # end of subroutines
79
80
81 # The beginning of the script proper
82
83 # Checking for proper OS
84 OS=`uname -s`
85 case "$OS" in
86 SunOS )
87 VAR="One value for Sun"
88 DEFAULT_JDK=/none
89 #DEFAULT_JDK=/usr/local/java/jdk1.2/solaris
90 FILESEP="/"
91 ;;
92
93 Linux | Darwin | AIX )
94 VAR="A different value for Linux"
95 DEFAULT_JDK=/none
96 #DEFAULT_JDK=/usr/local/java/jdk1.4/linux-i386
97 FILESEP="/"
98 ;;
99
100 Windows_95 | Windows_98 | Windows_NT | Windows_ME )
101 VAR="A different value for Win32"
102 DEFAULT_JDK=/none
103 #DEFAULT_JDK=/usr/local/java/jdk1.2/win32
104 FILESEP="\\"
105 ;;
106
107 CYGWIN* )
108 VAR="A different value for CYGWIN"
109 DEFAULT_JDK=/none
110 FILESEP="/"
111 ;;
112
|
66 echo "$*" 1>&2
67 exit 1
68 } #end of fail()
69
70 #Call this from anywhere to pass the test with a message
71 # usage: pass "reason why the test passed if applicable"
72 pass()
73 { echo "The test passed!!!"
74 echo "$*" 1>&2
75 exit 0
76 } #end of pass()
77
78 # end of subroutines
79
80
81 # The beginning of the script proper
82
83 # Checking for proper OS
84 OS=`uname -s`
85 case "$OS" in
86 Linux | Darwin | AIX )
87 VAR="A different value for Linux"
88 DEFAULT_JDK=/none
89 #DEFAULT_JDK=/usr/local/java/jdk1.4/linux-i386
90 FILESEP="/"
91 ;;
92
93 Windows_95 | Windows_98 | Windows_NT | Windows_ME )
94 VAR="A different value for Win32"
95 DEFAULT_JDK=/none
96 #DEFAULT_JDK=/usr/local/java/jdk1.2/win32
97 FILESEP="\\"
98 ;;
99
100 CYGWIN* )
101 VAR="A different value for CYGWIN"
102 DEFAULT_JDK=/none
103 FILESEP="/"
104 ;;
105
|