1 #!echo "This is not a shell script"
2 #
3 # Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 #
6 # This code is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License version 2 only, as
8 # published by the Free Software Foundation.
9 #
10 # This code is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 # version 2 for more details (a copy is included in the LICENSE file that
14 # accompanied this code).
15 #
16 # You should have received a copy of the GNU General Public License version
17 # 2 along with this work; if not, write to the Free Software Foundation,
18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 #
20 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
21 # CA 95054 USA or visit www.sun.com if you need additional information or
22 # have any questions.
23 #
51 slashjava="${ALT_SLASH_JAVA}"
52 jdk_import="${ALT_JDK_IMPORT_PATH}"
53
54 # Check input
55 dirMustExist "${bootdir}" ALT_BOOTDIR
56 dirMustExist "${slashjava}" ALT_SLASH_JAVA
57 dirMustExist "${jdk_import}" ALT_JDK_IMPORT_PATH
58
59 # Uses 'uname -s', but only expect SunOS or Linux, assume Windows otherwise.
60 osname=`uname -s`
61 if [ "${osname}" = SunOS ] ; then
62
63 # SOLARIS: Sparc or X86
64 osarch=`uname -p`
65 if [ "${osarch}" = sparc ] ; then
66 solaris_arch=sparc
67 else
68 solaris_arch=i386
69 fi
70
71 # Get the SS11 compilers into path (make sure it matches ALT setting)
72 compiler_path=${slashjava}/devtools/${solaris_arch}/SUNWspro/SS11/bin
73 dirMustExist "${compiler_path}" COMPILER_PATH
74 path4sdk=${compiler_path}
75
76 # Add basic solaris system paths
77 path4sdk=${path4sdk}:/usr/ccs/bin:/usr/ccs/lib:/usr/bin:/bin:/usr/sfw/bin
78
79 # Get the previous JDK to be used to bootstrap the build
80 path4sdk=${bootdir}/bin:${path4sdk}
81
82 # Find GNU make
83 make=/usr/sfw/bin/gmake
84 if [ ! -f ${make} ] ; then
85 make=/opt/sfw/bin/gmake
86 if [ ! -f ${make} ] ; then
87 make=${slashjava}/devtools/${solaris_arch}/bin/gnumake
88 fi
89 fi
90 fileMustExist "${make}" make
91
92 # File creation mask
|
1 #!echo "This is not a shell script"
2 #
3 # Copyright 2006-2008 Sun Microsystems, Inc. All Rights Reserved.
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 #
6 # This code is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License version 2 only, as
8 # published by the Free Software Foundation.
9 #
10 # This code is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
13 # version 2 for more details (a copy is included in the LICENSE file that
14 # accompanied this code).
15 #
16 # You should have received a copy of the GNU General Public License version
17 # 2 along with this work; if not, write to the Free Software Foundation,
18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19 #
20 # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
21 # CA 95054 USA or visit www.sun.com if you need additional information or
22 # have any questions.
23 #
51 slashjava="${ALT_SLASH_JAVA}"
52 jdk_import="${ALT_JDK_IMPORT_PATH}"
53
54 # Check input
55 dirMustExist "${bootdir}" ALT_BOOTDIR
56 dirMustExist "${slashjava}" ALT_SLASH_JAVA
57 dirMustExist "${jdk_import}" ALT_JDK_IMPORT_PATH
58
59 # Uses 'uname -s', but only expect SunOS or Linux, assume Windows otherwise.
60 osname=`uname -s`
61 if [ "${osname}" = SunOS ] ; then
62
63 # SOLARIS: Sparc or X86
64 osarch=`uname -p`
65 if [ "${osarch}" = sparc ] ; then
66 solaris_arch=sparc
67 else
68 solaris_arch=i386
69 fi
70
71 if [ "${JPRT_SOLARIS_COMPILER_NAME}" != "" ] ; then
72 compiler_name=${JPRT_SOLARIS_COMPILER_NAME}
73 else
74 if [ "${JPRT_JOB_PRODUCT_RELEASE}" = "jdk6" -o \
75 "${JPRT_JOB_PRODUCT_RELEASE}" = "jdk6u10" -o \
76 "${JPRT_JOB_PRODUCT_RELEASE}" = "jdk6u14" -o \
77 "${JPRT_JOB_PRODUCT_RELEASE}" = "jdk6perf" ] ; then
78 # All jdk6 builds use SS11
79 compiler_name=SS11
80 else
81 compiler_name=SS12
82 fi
83 fi
84
85 # Get into path (make sure it matches ALT setting)
86 compiler_path=${slashjava}/devtools/${solaris_arch}/SUNWspro/${compiler_name}/bin
87 dirMustExist "${compiler_path}" COMPILER_PATH
88 path4sdk=${compiler_path}
89
90 # Add basic solaris system paths
91 path4sdk=${path4sdk}:/usr/ccs/bin:/usr/ccs/lib:/usr/bin:/bin:/usr/sfw/bin
92
93 # Get the previous JDK to be used to bootstrap the build
94 path4sdk=${bootdir}/bin:${path4sdk}
95
96 # Find GNU make
97 make=/usr/sfw/bin/gmake
98 if [ ! -f ${make} ] ; then
99 make=/opt/sfw/bin/gmake
100 if [ ! -f ${make} ] ; then
101 make=${slashjava}/devtools/${solaris_arch}/bin/gnumake
102 fi
103 fi
104 fileMustExist "${make}" make
105
106 # File creation mask
|