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