1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/common/autoconf/compare.sh.in Wed Apr 27 01:39:08 2016 +0800 1.3 @@ -0,0 +1,80 @@ 1.4 +#!/bin/bash 1.5 +# 1.6 +# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 +# 1.9 +# This code is free software; you can redistribute it and/or modify it 1.10 +# under the terms of the GNU General Public License version 2 only, as 1.11 +# published by the Free Software Foundation. 1.12 +# 1.13 +# This code is distributed in the hope that it will be useful, but WITHOUT 1.14 +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1.15 +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1.16 +# version 2 for more details (a copy is included in the LICENSE file that 1.17 +# accompanied this code). 1.18 +# 1.19 +# You should have received a copy of the GNU General Public License version 1.20 +# 2 along with this work; if not, write to the Free Software Foundation, 1.21 +# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1.22 +# 1.23 +# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 1.24 +# or visit www.oracle.com if you need additional information or have any 1.25 +# questions. 1.26 +# 1.27 + 1.28 +# This script is processed by configure before it's usable. It is run from 1.29 +# the root of the build directory. 1.30 + 1.31 + 1.32 +########################################################################################## 1.33 +# Substitutions from autoconf 1.34 + 1.35 +LEGACY_BUILD_DIR=@OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU_LEGACY@ 1.36 + 1.37 +OPENJDK_TARGET_OS="@OPENJDK_TARGET_OS@" 1.38 +OPENJDK_TARGET_CPU="@OPENJDK_TARGET_CPU@" 1.39 + 1.40 +AWK="@AWK@" 1.41 +CAT="@CAT@" 1.42 +CMP="@CMP@" 1.43 +CP="@CP@" 1.44 +CUT="@CUT@" 1.45 +DIFF="@DIFF@" 1.46 +DUMPBIN="@FIXPATH@ @DUMPBIN@" 1.47 +EXPR="@EXPR@" 1.48 +FILE="@FILE@" 1.49 +FIND="@FIND@" 1.50 +GREP="@GREP@" 1.51 +JAVAP="@FIXPATH@ @BOOT_JDK@/bin/javap" 1.52 +LDD="@LDD@" 1.53 +MKDIR="@MKDIR@" 1.54 +NAWK="@NAWK@" 1.55 +NM="@GNM@" 1.56 +OBJDUMP="@OBJDUMP@" 1.57 +OTOOL="@OTOOL@" 1.58 +PRINTF="@PRINTF@" 1.59 +READELF="@READELF@" 1.60 +RM="@RM@" 1.61 +SED="@SED@" 1.62 +SORT="@SORT@" 1.63 +STAT="@STAT@" 1.64 +STRIP="@POST_STRIP_CMD@" 1.65 +TEE="@TEE@" 1.66 +UNIQ="@UNIQ@" 1.67 +UNPACK200="@FIXPATH@ @BOOT_JDK@/bin/unpack200" 1.68 +UNZIP="@UNZIP@" 1.69 + 1.70 +SRC_ROOT="@SRC_ROOT@" 1.71 + 1.72 +if [ "$OPENJDK_TARGET_OS" = "windows" ]; then 1.73 + PATH="@VS_PATH@" 1.74 +fi 1.75 + 1.76 +# Now locate the main script and run it. 1.77 +REAL_COMPARE_SCRIPT="$SRC_ROOT/common/bin/compare.sh" 1.78 +if [ ! -e "$REAL_COMPARE_SCRIPT" ]; then 1.79 + echo "Error: Cannot locate compare script, it should have been in $REAL_COMPARE_SCRIPT" 1.80 + exit 1 1.81 +fi 1.82 + 1.83 +. "$REAL_COMPARE_SCRIPT" "$@"