author | mikejwre |
Thu, 03 Jun 2010 13:30:13 -0700 | |
changeset 5642 | c537acdc6dba |
parent 5547 | f4b087cbb361 |
child 10563 | b9b82ff9f0e9 |
permissions | -rw-r--r-- |
1 | 1 |
#! /bin/sh |
2 |
# |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
670
diff
changeset
|
3 |
# Copyright (c) 1999, 2008, Oracle and/or its affiliates. All rights reserved. |
1 | 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 |
# |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
670
diff
changeset
|
20 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
670
diff
changeset
|
21 |
# or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
670
diff
changeset
|
22 |
# questions. |
1 | 23 |
# |
24 |
# |
|
25 |
||
26 |
# Make sure the variable JAVA_HOME is set before running this script. |
|
27 |
||
28 |
set -u |
|
29 |
||
30 |
||
31 |
if [ $# != 2 ]; then |
|
32 |
echo "Usage : $0 Build_Options Location" |
|
33 |
echo "Build Options : debug or optimized or basicdebug or basic or clean" |
|
34 |
echo "Location : specify any workspace which has gamma sources" |
|
35 |
exit 1 |
|
36 |
fi |
|
37 |
||
38 |
# Just in case: |
|
39 |
case ${JAVA_HOME} in |
|
40 |
/*) true;; |
|
41 |
?*) JAVA_HOME=`( cd $JAVA_HOME; pwd )`;; |
|
42 |
esac |
|
43 |
||
44 |
case `uname -m` in |
|
45 |
i386|i486|i586|i686) |
|
46 |
mach=i386 |
|
47 |
;; |
|
48 |
*) |
|
49 |
echo "Unsupported machine: " `uname -m` |
|
50 |
exit 1 |
|
51 |
;; |
|
52 |
esac |
|
53 |
||
54 |
if [ "${JAVA_HOME}" = "" -o ! -d "${JAVA_HOME}" -o ! -d ${JAVA_HOME}/jre/lib/${mach} ]; then |
|
55 |
echo "JAVA_HOME needs to be set to a valid JDK path" |
|
56 |
echo "ksh : export JAVA_HOME=/net/tetrasparc/export/gobi/JDK1.2_fcs_V/linux" |
|
57 |
echo "csh : setenv JAVA_HOME /net/tetrasparc/export/gobi/JDK1.2_fcs_V/linux" |
|
58 |
exit 1 |
|
59 |
fi |
|
60 |
||
61 |
||
62 |
LD_LIBRARY_PATH=${JAVA_HOME}/jre/lib/`uname -p`:\ |
|
63 |
${JAVA_HOME}/jre/lib/`uname -p`/native_threads:${LD_LIBRARY_PATH-.} |
|
64 |
||
65 |
# This is necessary as long as we are using the old launcher |
|
66 |
# with the new distribution format: |
|
67 |
CLASSPATH=${JAVA_HOME}/jre/lib/rt.jar:${CLASSPATH-.} |
|
68 |
||
69 |
||
70 |
for gm in gmake gnumake |
|
71 |
do |
|
72 |
if [ "${GNUMAKE-}" != "" ]; then break; fi |
|
73 |
($gm --version >/dev/null) 2>/dev/null && GNUMAKE=$gm |
|
74 |
done |
|
75 |
: ${GNUMAKE:?'Cannot locate the gnumake program. Stop.'} |
|
76 |
||
77 |
||
78 |
echo "### ENVIRONMENT SETTINGS:" |
|
79 |
export JAVA_HOME ; echo "JAVA_HOME=$JAVA_HOME" |
|
80 |
export LD_LIBRARY_PATH ; echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" |
|
81 |
export CLASSPATH ; echo "CLASSPATH=$CLASSPATH" |
|
82 |
export GNUMAKE ; echo "GNUMAKE=$GNUMAKE" |
|
83 |
echo "###" |
|
84 |
||
85 |
Build_Options=$1 |
|
86 |
Location=$2 |
|
87 |
||
88 |
case ${Location} in |
|
89 |
/*) true;; |
|
90 |
?*) Location=`(cd ${Location}; pwd)`;; |
|
91 |
esac |
|
92 |
||
93 |
echo \ |
|
338
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
94 |
${GNUMAKE} -f ${Location}/make/linux/Makefile $Build_Options GAMMADIR=${Location} |
5cf9f61d76f4
6583644: Move all managed/SCCS files out of 'build' into 'make' directory
kamg
parents:
1
diff
changeset
|
95 |
${GNUMAKE} -f ${Location}/make/linux/Makefile $Build_Options GAMMADIR=${Location} |