Fri, 26 Oct 2012 14:29:57 -0700
8000992: Update new build-infra makefiles
Summary: Build-infra project integration. Multiple authors on this work: erikj and ihse primarily, also changes from ohair, tbell, and dholmes. Special credit to ohstrom for his smartjavac work.
Reviewed-by: erikj, ihse, dholmes, tbell
1 #!/bin/bash
2 #
3 # Copyright (c) 2012, Oracle and/or its affiliates. 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 Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 # or visit www.oracle.com if you need additional information or have any
22 # questions.
23 #
25 # This script is processed by configure before it's usable. It is run from
26 # the root of the build directory.
29 ##########################################################################################
30 # Substitutions from autoconf
32 LEGACY_BUILD_DIR=@OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU_LEGACY@
34 OPENJDK_TARGET_OS="@OPENJDK_TARGET_OS@"
35 OPENJDK_TARGET_CPU="@OPENJDK_TARGET_CPU@"
37 AWK="@AWK@"
38 CAT="@CAT@"
39 CMP="@CMP@"
40 CP="@CP@"
41 CUT="@CUT@"
42 DIFF="@DIFF@"
43 DUMPBIN="@FIXPATH@ @DUMPBIN@"
44 EXPR="@EXPR@"
45 FILE="@FILE@"
46 FIND="@FIND@"
47 GREP="@GREP@"
48 JAVAP="@FIXPATH@ @BOOT_JDK@/bin/javap"
49 LDD="@LDD@"
50 MKDIR="@MKDIR@"
51 NM="@NM@"
52 OBJDUMP="@OBJDUMP@"
53 OTOOL="@OTOOL@"
54 PRINTF="@PRINTF@"
55 READELF="@READELF@"
56 RM="@RM@"
57 SED="@SED@"
58 SORT="@SORT@"
59 STAT="@STAT@"
60 STRIP="@POST_STRIP_CMD@"
61 TEE="@TEE@"
62 UNIQ="@UNIQ@"
63 UNZIP="@UNZIP@"
65 SRC_ROOT="@SRC_ROOT@"
67 if [ "$OPENJDK_TARGET_OS" = "windows" ]; then
68 PATH="@VS_PATH@"
69 fi
71 # Now locate the main script and run it.
72 REAL_COMPARE_SCRIPT="$SRC_ROOT/common/bin/compare.sh"
73 if [ ! -e "$REAL_COMPARE_SCRIPT" ]; then
74 echo "Error: Cannot locate compare script, it should have been in $REAL_COMPARE_SCRIPT"
75 exit 1
76 fi
78 . "$REAL_COMPARE_SCRIPT" "$@"