common/autoconf/compare.sh.in

Thu, 27 Dec 2018 11:47:57 +0800

author
aoqi
date
Thu, 27 Dec 2018 11:47:57 +0800
changeset 2316
64a3eeabf6e5
parent 2212
dd97daafa80b
parent 1133
50aaf272884f
permissions
-rw-r--r--

Merge

aoqi@0 1 #!/bin/bash
aoqi@0 2 #
kevinw@2212 3 # Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
aoqi@0 4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 5 #
aoqi@0 6 # This code is free software; you can redistribute it and/or modify it
aoqi@0 7 # under the terms of the GNU General Public License version 2 only, as
aoqi@0 8 # published by the Free Software Foundation.
aoqi@0 9 #
aoqi@0 10 # This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 13 # version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 14 # accompanied this code).
aoqi@0 15 #
aoqi@0 16 # You should have received a copy of the GNU General Public License version
aoqi@0 17 # 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 19 #
aoqi@0 20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 21 # or visit www.oracle.com if you need additional information or have any
aoqi@0 22 # questions.
aoqi@0 23 #
aoqi@0 24
aoqi@0 25 # This script is processed by configure before it's usable. It is run from
aoqi@0 26 # the root of the build directory.
aoqi@0 27
aoqi@0 28
aoqi@0 29 ##########################################################################################
aoqi@0 30 # Substitutions from autoconf
aoqi@0 31
aoqi@0 32 LEGACY_BUILD_DIR=@OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU_LEGACY@
aoqi@0 33
aoqi@0 34 OPENJDK_TARGET_OS="@OPENJDK_TARGET_OS@"
aoqi@0 35 OPENJDK_TARGET_CPU="@OPENJDK_TARGET_CPU@"
aoqi@0 36
aoqi@0 37 AWK="@AWK@"
aoqi@0 38 CAT="@CAT@"
aoqi@0 39 CMP="@CMP@"
aoqi@0 40 CP="@CP@"
aoqi@0 41 CUT="@CUT@"
aoqi@0 42 DIFF="@DIFF@"
aoqi@0 43 DUMPBIN="@FIXPATH@ @DUMPBIN@"
aoqi@0 44 EXPR="@EXPR@"
aoqi@0 45 FILE="@FILE@"
aoqi@0 46 FIND="@FIND@"
aoqi@0 47 GREP="@GREP@"
aoqi@0 48 JAVAP="@FIXPATH@ @BOOT_JDK@/bin/javap"
aoqi@0 49 LDD="@LDD@"
aoqi@0 50 MKDIR="@MKDIR@"
aoqi@0 51 NAWK="@NAWK@"
aoqi@0 52 NM="@GNM@"
aoqi@0 53 OBJDUMP="@OBJDUMP@"
aoqi@0 54 OTOOL="@OTOOL@"
aoqi@0 55 PRINTF="@PRINTF@"
aoqi@0 56 READELF="@READELF@"
aoqi@0 57 RM="@RM@"
aoqi@0 58 SED="@SED@"
aoqi@0 59 SORT="@SORT@"
aoqi@0 60 STAT="@STAT@"
aoqi@0 61 STRIP="@POST_STRIP_CMD@"
aoqi@0 62 TEE="@TEE@"
aoqi@0 63 UNIQ="@UNIQ@"
aoqi@0 64 UNPACK200="@FIXPATH@ @BOOT_JDK@/bin/unpack200"
aoqi@0 65 UNZIP="@UNZIP@"
aoqi@0 66
kevinw@2212 67 SRC_ROOT="@TOPDIR@"
aoqi@0 68
aoqi@0 69 if [ "$OPENJDK_TARGET_OS" = "windows" ]; then
aoqi@0 70 PATH="@VS_PATH@"
aoqi@0 71 fi
aoqi@0 72
aoqi@0 73 # Now locate the main script and run it.
aoqi@0 74 REAL_COMPARE_SCRIPT="$SRC_ROOT/common/bin/compare.sh"
aoqi@0 75 if [ ! -e "$REAL_COMPARE_SCRIPT" ]; then
aoqi@0 76 echo "Error: Cannot locate compare script, it should have been in $REAL_COMPARE_SCRIPT"
aoqi@0 77 exit 1
aoqi@0 78 fi
aoqi@0 79
aoqi@0 80 . "$REAL_COMPARE_SCRIPT" "$@"

mercurial