compare.sh.in revision 1223:67395f7ca2db
1254721Semaste#!/bin/bash 2254721Semaste# 3353358Sdim# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. 4353358Sdim# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5353358Sdim# 6254721Semaste# This code is free software; you can redistribute it and/or modify it 7254721Semaste# under the terms of the GNU General Public License version 2 only, as 8254721Semaste# published by the Free Software Foundation. 9254721Semaste# 10254721Semaste# This code is distributed in the hope that it will be useful, but WITHOUT 11254721Semaste# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12254721Semaste# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13254721Semaste# version 2 for more details (a copy is included in the LICENSE file that 14321369Sdim# accompanied this code). 15321369Sdim# 16321369Sdim# You should have received a copy of the GNU General Public License version 17321369Sdim# 2 along with this work; if not, write to the Free Software Foundation, 18321369Sdim# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19254721Semaste# 20254721Semaste# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 21254721Semaste# or visit www.oracle.com if you need additional information or have any 22314564Sdim# questions. 23254721Semaste# 24314564Sdim 25314564Sdim# This script is processed by configure before it's usable. It is run from 26314564Sdim# the root of the build directory. 27314564Sdim 28314564Sdim 29314564Sdim########################################################################################## 30314564Sdim# Substitutions from autoconf 31254721Semaste 32344779SdimLEGACY_BUILD_DIR=@OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU_LEGACY@ 33254721Semaste 34314564SdimOPENJDK_TARGET_OS="@OPENJDK_TARGET_OS@" 35314564SdimOPENJDK_TARGET_CPU="@OPENJDK_TARGET_CPU@" 36314564Sdim 37314564SdimAWK="@AWK@" 38314564SdimCAT="@CAT@" 39314564SdimCMP="@CMP@" 40314564SdimCP="@CP@" 41314564SdimCUT="@CUT@" 42314564SdimDIFF="@DIFF@" 43321369SdimDUMPBIN="@FIXPATH@ @DUMPBIN@" 44314564SdimEXPR="@EXPR@" 45314564SdimFILE="@FILE@" 46321369SdimFIND="@FIND@" 47314564SdimGREP="@GREP@" 48314564SdimJAVAP="@FIXPATH@ @BOOT_JDK@/bin/javap @JAVA_TOOL_FLAGS_SMALL@" 49314564SdimJIMAGE="@FIXPATH@ @BUILD_OUTPUT@/jdk/bin/jimage" 50314564SdimLDD="@LDD@" 51314564SdimMKDIR="@MKDIR@" 52314564SdimNAWK="@NAWK@" 53314564SdimNM="@GNM@" 54314564SdimOBJDUMP="@OBJDUMP@" 55314564SdimOTOOL="@OTOOL@" 56314564SdimPRINTF="@PRINTF@" 57314564SdimREADELF="@READELF@" 58360784SdimRM="@RM@" 59360784SdimSED="@SED@" 60314564SdimSORT="@SORT@" 61314564SdimSTAT="@STAT@" 62314564SdimSTRIP="@POST_STRIP_CMD@" 63314564SdimTEE="@TEE@" 64314564SdimUNIQ="@UNIQ@" 65314564SdimUNPACK200="@FIXPATH@ @BOOT_JDK@/bin/unpack200" 66314564SdimUNZIP="@UNZIP@" 67314564Sdim 68314564SdimSRC_ROOT="@TOPDIR@" 69314564Sdim 70314564Sdimif [ "$OPENJDK_TARGET_OS" = "windows" ]; then 71314564Sdim PATH="@VS_PATH@" 72314564Sdimfi 73314564Sdim 74314564Sdim# Now locate the main script and run it. 75314564SdimREAL_COMPARE_SCRIPT="$SRC_ROOT/common/bin/compare.sh" 76254721Semasteif [ ! -e "$REAL_COMPARE_SCRIPT" ]; then 77344779Sdim echo "Error: Cannot locate compare script, it should have been in $REAL_COMPARE_SCRIPT" 78254721Semaste exit 1 79314564Sdimfi 80314564Sdim 81314564Sdim. "$REAL_COMPARE_SCRIPT" "$@" 82254721Semaste