compare.sh.in revision 1664:c800f2919a1f
1284990Scy#!/bin/bash 2284990Scy# 3284990Scy# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. 4284990Scy# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 5284990Scy# 6284990Scy# This code is free software; you can redistribute it and/or modify it 7284990Scy# under the terms of the GNU General Public License version 2 only, as 8284990Scy# published by the Free Software Foundation. 9284990Scy# 10284990Scy# This code is distributed in the hope that it will be useful, but WITHOUT 11284990Scy# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 12284990Scy# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 13284990Scy# version 2 for more details (a copy is included in the LICENSE file that 14284990Scy# accompanied this code). 15290000Sglebius# 16290000Sglebius# You should have received a copy of the GNU General Public License version 17290000Sglebius# 2 along with this work; if not, write to the Free Software Foundation, 18290000Sglebius# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 19290000Sglebius# 20290000Sglebius# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 21290000Sglebius# or visit www.oracle.com if you need additional information or have any 22290000Sglebius# questions. 23290000Sglebius# 24290000Sglebius 25290000Sglebius# This script is processed by configure before it's usable. It is run from 26290000Sglebius# the root of the build directory. 27284990Scy 28284990Scy 29290000Sglebius########################################################################################## 30294904Sdelphij# Substitutions from autoconf 31294904Sdelphij 32284990ScyLEGACY_BUILD_DIR=@OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU_LEGACY@ 33284990Scy 34284990ScyOPENJDK_TARGET_OS="@OPENJDK_TARGET_OS@" 35284990ScyOPENJDK_TARGET_CPU="@OPENJDK_TARGET_CPU@" 36290000Sglebius 37294904SdelphijAWK="@AWK@" 38294904SdelphijCAT="@CAT@" 39294904SdelphijCMP="@CMP@" 40294904SdelphijCP="@CP@" 41294904SdelphijCUT="@CUT@" 42294904SdelphijDIFF="@DIFF@" 43284990ScyDUMPBIN="@FIXPATH@ @DUMPBIN@" 44284990ScyEXPR="@EXPR@" 45290000SglebiusFILE="@FILE@" 46290000SglebiusFIND="@FIND@" 47294904SdelphijGREP="@GREP@" 48294904SdelphijJAVAP="@FIXPATH@ @BOOT_JDK@/bin/javap @JAVA_TOOL_FLAGS_SMALL@" 49294904SdelphijJIMAGE="@FIXPATH@ @BUILD_OUTPUT@/jdk/bin/jimage" 50294904SdelphijLDD="@LDD@" 51294904SdelphijLN="@LN@" 52284990ScyMKDIR="@MKDIR@" 53284990ScyNAWK="@NAWK@" 54284990ScyNM="@GNM@" 55284990ScyOBJDUMP="@OBJDUMP@" 56284990ScyOTOOL="@OTOOL@" 57284990ScyPRINTF="@PRINTF@" 58284990ScyREADELF="@READELF@" 59284990ScyRM="@RM@" 60284990ScySED="@SED@" 61284990ScySORT="@SORT@" 62284990ScySTAT="@STAT@" 63284990ScySTRIP="@STRIP@ @STRIPFLAGS@" 64284990ScyTEE="@TEE@" 65284990ScyUNIQ="@UNIQ@" 66284990ScyUNPACK200="@FIXPATH@ @BOOT_JDK@/bin/unpack200" 67284990ScyUNZIP="@UNZIP@" 68284990Scy 69284990ScySRC_ROOT="@TOPDIR@" 70284990Scy 71290000Sglebiusif [ "$OPENJDK_TARGET_OS" = "windows" ]; then 72290000Sglebius PATH="@VS_PATH@" 73294904Sdelphijfi 74294904Sdelphij 75294904Sdelphij# Now locate the main script and run it. 76294904SdelphijREAL_COMPARE_SCRIPT="$SRC_ROOT/common/bin/compare.sh" 77294904Sdelphijif [ ! -e "$REAL_COMPARE_SCRIPT" ]; then 78294904Sdelphij echo "Error: Cannot locate compare script, it should have been in $REAL_COMPARE_SCRIPT" 79294904Sdelphij exit 1 80294904Sdelphijfi 81294904Sdelphij 82294904Sdelphij. "$REAL_COMPARE_SCRIPT" "$@" 83284990Scy