1 #!echo "This is not a shell script" |
1 #!echo "This is not a shell script" |
2 ############################################################################# |
2 ############################################################################# |
3 # |
3 # |
4 # Copyright 2006-2007 Sun Microsystems, Inc. All Rights Reserved. |
4 # Copyright 2006-2008 Sun Microsystems, Inc. All Rights Reserved. |
5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
6 # |
6 # |
7 # This code is free software; you can redistribute it and/or modify it |
7 # This code is free software; you can redistribute it and/or modify it |
8 # under the terms of the GNU General Public License version 2 only, as |
8 # under the terms of the GNU General Public License version 2 only, as |
9 # published by the Free Software Foundation. Sun designates this |
9 # published by the Free Software Foundation. Sun designates this |
98 share="${jdk_devtools}/share" |
98 share="${jdk_devtools}/share" |
99 |
99 |
100 # Needed for langtools, maybe other parts of the build |
100 # Needed for langtools, maybe other parts of the build |
101 ANT_HOME="${share}/ant/latest" |
101 ANT_HOME="${share}/ant/latest" |
102 export ANT_HOME |
102 export ANT_HOME |
103 FINDBUGS_HOME="${share}/findbugs/latest" |
|
104 export FINDBUGS_HOME |
|
105 |
103 |
106 # The 3 bin directories in common to all platforms |
104 # The 3 bin directories in common to all platforms |
107 sharebin="${share}/bin" |
105 sharebin="${share}/bin" |
108 antbin="${ANT_HOME}/bin" |
106 antbin="${ANT_HOME}/bin" |
109 findbugsbin="${FINDBUGS_HOME}/bin" |
|
110 |
107 |
111 # Check input |
108 # Check input |
112 dirMustExist "${bootdir}" ALT_BOOTDIR |
109 dirMustExist "${bootdir}" ALT_BOOTDIR |
113 dirMustExist "${slashjava}" ALT_SLASH_JAVA |
110 dirMustExist "${slashjava}" ALT_SLASH_JAVA |
114 dirMustExist "${jdk_import}" ALT_JDK_IMPORT_PATH |
111 dirMustExist "${jdk_import}" ALT_JDK_IMPORT_PATH |
115 dirMustExist "${ANT_HOME}" ANT_HOME |
112 dirMustExist "${ANT_HOME}" ANT_HOME |
116 dirMustExist "${FINDBUGS_HOME}" FINDBUGS_HOME |
|
117 |
113 |
118 # If ALT_PREVIOUS_RELEASE_IMAGE not defined, set it to the bootdir area for |
114 # If ALT_PREVIOUS_RELEASE_IMAGE not defined, set it to the bootdir area for |
119 # any possible image comparisons. |
115 # any possible image comparisons. |
120 # We assume bootdir is a previous jdk release image, valid for comparison |
116 # We assume bootdir is a previous jdk release image, valid for comparison |
121 # reasons. |
117 # reasons. |
150 fi |
146 fi |
151 compiler_path=${jdk_devtools}/${solaris_arch}/SUNWspro/${compiler_name}/bin |
147 compiler_path=${jdk_devtools}/${solaris_arch}/SUNWspro/${compiler_name}/bin |
152 ALT_COMPILER_PATH="${compiler_path}" |
148 ALT_COMPILER_PATH="${compiler_path}" |
153 export ALT_COMPILER_PATH |
149 export ALT_COMPILER_PATH |
154 dirMustExist "${compiler_path}" ALT_COMPILER_PATH |
150 dirMustExist "${compiler_path}" ALT_COMPILER_PATH |
155 path4sdk=${compiler_path}:${sharebin}:${antbin}:${findbugsbin} |
151 path4sdk=${compiler_path}:${sharebin}:${antbin} |
156 |
152 |
157 # Add basic solaris system paths |
153 # Add basic solaris system paths |
158 path4sdk=${path4sdk}:/usr/ccs/bin:/usr/ccs/lib:/usr/bin:/bin:/usr/sfw/bin |
154 path4sdk=${path4sdk}:/usr/ccs/bin:/usr/ccs/lib:/usr/bin:/bin:/usr/sfw/bin |
159 |
155 |
160 # Get the previous JDK to be used to bootstrap the build |
156 # Get the previous JDK to be used to bootstrap the build |
187 compiler_path=/usr/bin |
183 compiler_path=/usr/bin |
188 compiler_name=usr_bin |
184 compiler_name=usr_bin |
189 ALT_COMPILER_PATH="${compiler_path}" |
185 ALT_COMPILER_PATH="${compiler_path}" |
190 export ALT_COMPILER_PATH |
186 export ALT_COMPILER_PATH |
191 dirMustExist "${compiler_path}" ALT_COMPILER_PATH |
187 dirMustExist "${compiler_path}" ALT_COMPILER_PATH |
192 path4sdk=${compiler_path}:${sharebin}:${antbin}:${findbugsbin} |
188 path4sdk=${compiler_path}:${sharebin}:${antbin} |
193 |
189 |
194 # Add basic paths |
190 # Add basic paths |
195 path4sdk=${path4sdk}:/usr/bin:/bin:/usr/sbin:/sbin |
191 path4sdk=${path4sdk}:/usr/bin:/bin:/usr/sbin:/sbin |
196 |
192 |
197 # Get the previous JDK to be used to bootstrap the build |
193 # Get the previous JDK to be used to bootstrap the build |
235 mkshome=`dosname -s "${ROOTDIR}"` |
231 mkshome=`dosname -s "${ROOTDIR}"` |
236 # Utility to convert to short pathnames without spaces |
232 # Utility to convert to short pathnames without spaces |
237 dosname="${mkshome}/mksnt/dosname -s" |
233 dosname="${mkshome}/mksnt/dosname -s" |
238 # Most unix utilities are in the mksnt directory of ROOTDIR |
234 # Most unix utilities are in the mksnt directory of ROOTDIR |
239 unixcommand_path="${mkshome}/mksnt" |
235 unixcommand_path="${mkshome}/mksnt" |
240 path4sdk="${sharebin};${antbin};${findbugsbin};${unixcommand_path}" |
236 path4sdk="${sharebin};${antbin};${unixcommand_path}" |
241 dirMustExist "${unixcommand_path}" ALT_UNIXCOMMAND_PATH |
237 dirMustExist "${unixcommand_path}" ALT_UNIXCOMMAND_PATH |
242 devtools_path="${jdk_devtools}/win32/bin" |
238 devtools_path="${jdk_devtools}/win32/bin" |
243 path4sdk="${devtools_path};${path4sdk}" |
239 path4sdk="${devtools_path};${path4sdk}" |
244 # Normally this need not be set, but on Windows it's default is C:/UTILS |
240 # Normally this need not be set, but on Windows it's default is C:/UTILS |
245 ALT_DEVTOOLS_PATH="${devtools_path}" |
241 ALT_DEVTOOLS_PATH="${devtools_path}" |
253 unix_toolset=CYGWIN |
249 unix_toolset=CYGWIN |
254 # Utility to convert to short pathnames without spaces |
250 # Utility to convert to short pathnames without spaces |
255 dosname="/usr/bin/cygpath -a -m -s" |
251 dosname="/usr/bin/cygpath -a -m -s" |
256 # Most unix utilities are in the /usr/bin |
252 # Most unix utilities are in the /usr/bin |
257 unixcommand_path="/usr/bin" |
253 unixcommand_path="/usr/bin" |
258 path4sdk="${sharebin};${antbin};${findbugsbin};${unixcommand_path}" |
254 path4sdk="${sharebin};${antbin};${unixcommand_path}" |
259 dirMustExist "${unixcommand_path}" ALT_UNIXCOMMAND_PATH |
255 dirMustExist "${unixcommand_path}" ALT_UNIXCOMMAND_PATH |
260 # Find GNU make |
256 # Find GNU make |
261 make="${unixcommand_path}/make.exe" |
257 make="${unixcommand_path}/make.exe" |
262 fileMustExist "${make}" make |
258 fileMustExist "${make}" make |
263 else |
259 else |