compare.sh.in revision 670:2f43964043c2
1238438Sdteske#!/bin/bash 2238438Sdteske# 3249746Sdteske# Copyright (c) 2012, 2013 Oracle and/or its affiliates. All rights reserved. 4252980Sdteske# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5238438Sdteske# 6238438Sdteske# This code is free software; you can redistribute it and/or modify it 7238438Sdteske# under the terms of the GNU General Public License version 2 only, as 8238438Sdteske# published by the Free Software Foundation. 9238438Sdteske# 10238438Sdteske# This code is distributed in the hope that it will be useful, but WITHOUT 11238438Sdteske# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12238438Sdteske# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13238438Sdteske# version 2 for more details (a copy is included in the LICENSE file that 14238438Sdteske# accompanied this code). 15238438Sdteske# 16252987Sdteske# You should have received a copy of the GNU General Public License version 17238438Sdteske# 2 along with this work; if not, write to the Free Software Foundation, 18238438Sdteske# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19238438Sdteske# 20252987Sdteske# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 21238438Sdteske# or visit www.oracle.com if you need additional information or have any 22238438Sdteske# questions. 23238438Sdteske# 24238438Sdteske 25238438Sdteske# This script is processed by configure before it's usable. It is run from 26238438Sdteske# the root of the build directory. 27238438Sdteske 28238438Sdteske 29238438Sdteske########################################################################################## 30238438Sdteske# Substitutions from autoconf 31240684Sdteske 32240684SdteskeLEGACY_BUILD_DIR=@OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU_LEGACY@ 33244675Sdteske 34240684SdteskeOPENJDK_TARGET_OS="@OPENJDK_TARGET_OS@" 35240684SdteskeOPENJDK_TARGET_CPU="@OPENJDK_TARGET_CPU@" 36238438Sdteske 37240684SdteskeAWK="@AWK@" 38238438SdteskeCAT="@CAT@" 39238438SdteskeCMP="@CMP@" 40260678SdteskeCP="@CP@" 41260678SdteskeCUT="@CUT@" 42238438SdteskeDIFF="@DIFF@" 43238438SdteskeDUMPBIN="@FIXPATH@ @DUMPBIN@" 44238438SdteskeEXPR="@EXPR@" 45238438SdteskeFILE="@FILE@" 46238438SdteskeFIND="@FIND@" 47238438SdteskeGREP="@GREP@" 48238438SdteskeJAVAP="@FIXPATH@ @BOOT_JDK@/bin/javap" 49238438SdteskeLDD="@LDD@" 50238438SdteskeMKDIR="@MKDIR@" 51238438SdteskeNAWK="@NAWK@" 52238438SdteskeNM="@GNM@" 53238438SdteskeOBJDUMP="@OBJDUMP@" 54238438SdteskeOTOOL="@OTOOL@" 55238438SdteskePRINTF="@PRINTF@" 56238438SdteskeREADELF="@READELF@" 57238438SdteskeRM="@RM@" 58238438SdteskeSED="@SED@" 59238438SdteskeSORT="@SORT@" 60238438SdteskeSTAT="@STAT@" 61238438SdteskeSTRIP="@POST_STRIP_CMD@" 62238438SdteskeTEE="@TEE@" 63238438SdteskeUNIQ="@UNIQ@" 64238438SdteskeUNPACK200="@FIXPATH@ @BOOT_JDK@/bin/unpack200" 65238438SdteskeUNZIP="@UNZIP@" 66238438Sdteske 67238438SdteskeSRC_ROOT="@SRC_ROOT@" 68238438Sdteske 69238438Sdteskeif [ "$OPENJDK_TARGET_OS" = "windows" ]; then 70250633Sdteske PATH="@VS_PATH@" 71238438Sdteskefi 72252178Sdteske 73238438Sdteske# Now locate the main script and run it. 74238438SdteskeREAL_COMPARE_SCRIPT="$SRC_ROOT/common/bin/compare.sh" 75238438Sdteskeif [ ! -e "$REAL_COMPARE_SCRIPT" ]; then 76238438Sdteske echo "Error: Cannot locate compare script, it should have been in $REAL_COMPARE_SCRIPT" 77238438Sdteske exit 1 78238438Sdteskefi 79238438Sdteske 80238438Sdteske. "$REAL_COMPARE_SCRIPT" "$@" 81238438Sdteske