compare.sh.in revision 563:39194e004ade
1188943Sthompsa#!/bin/bash 2188943Sthompsa# 3188943Sthompsa# Copyright (c) 2012, 2013 Oracle and/or its affiliates. All rights reserved. 4188943Sthompsa# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5188943Sthompsa# 6188943Sthompsa# This code is free software; you can redistribute it and/or modify it 7188943Sthompsa# under the terms of the GNU General Public License version 2 only, as 8188943Sthompsa# published by the Free Software Foundation. 9188943Sthompsa# 10188943Sthompsa# This code is distributed in the hope that it will be useful, but WITHOUT 11188943Sthompsa# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12188943Sthompsa# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13188943Sthompsa# version 2 for more details (a copy is included in the LICENSE file that 14188943Sthompsa# accompanied this code). 15188943Sthompsa# 16188943Sthompsa# You should have received a copy of the GNU General Public License version 17188943Sthompsa# 2 along with this work; if not, write to the Free Software Foundation, 18188943Sthompsa# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19188943Sthompsa# 20188943Sthompsa# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 21188943Sthompsa# or visit www.oracle.com if you need additional information or have any 22188943Sthompsa# questions. 23188943Sthompsa# 24188943Sthompsa 25188943Sthompsa# This script is processed by configure before it's usable. It is run from 26188943Sthompsa# the root of the build directory. 27188943Sthompsa 28188943Sthompsa 29188943Sthompsa########################################################################################## 30188943Sthompsa# Substitutions from autoconf 31188943Sthompsa 32188943SthompsaLEGACY_BUILD_DIR=@OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU_LEGACY@ 33188943Sthompsa 34188943SthompsaOPENJDK_TARGET_OS="@OPENJDK_TARGET_OS@" 35188943SthompsaOPENJDK_TARGET_CPU="@OPENJDK_TARGET_CPU@" 36188943Sthompsa 37AWK="@AWK@" 38CAT="@CAT@" 39CMP="@CMP@" 40CP="@CP@" 41CUT="@CUT@" 42DIFF="@DIFF@" 43DUMPBIN="@FIXPATH@ @DUMPBIN@" 44EXPR="@EXPR@" 45FILE="@FILE@" 46FIND="@FIND@" 47GREP="@GREP@" 48JAVAP="@FIXPATH@ @BOOT_JDK@/bin/javap" 49LDD="@LDD@" 50MKDIR="@MKDIR@" 51NAWK="@NAWK@" 52NM="@NM@" 53OBJDUMP="@OBJDUMP@" 54OTOOL="@OTOOL@" 55PRINTF="@PRINTF@" 56READELF="@READELF@" 57RM="@RM@" 58SED="@SED@" 59SORT="@SORT@" 60STAT="@STAT@" 61STRIP="@POST_STRIP_CMD@" 62TEE="@TEE@" 63UNIQ="@UNIQ@" 64UNPACK200="@FIXPATH@ @BOOT_JDK@/bin/unpack200" 65UNZIP="@UNZIP@" 66 67SRC_ROOT="@SRC_ROOT@" 68 69if [ "$OPENJDK_TARGET_OS" = "windows" ]; then 70 PATH="@VS_PATH@" 71fi 72 73# Now locate the main script and run it. 74REAL_COMPARE_SCRIPT="$SRC_ROOT/common/bin/compare.sh" 75if [ ! -e "$REAL_COMPARE_SCRIPT" ]; then 76 echo "Error: Cannot locate compare script, it should have been in $REAL_COMPARE_SCRIPT" 77 exit 1 78fi 79 80. "$REAL_COMPARE_SCRIPT" "$@" 81