compare.sh.in revision 492:e64f2cb57d05
178064Sume#!/bin/bash
2331722Seadler#
355009Sshin# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
455009Sshin# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
555009Sshin#
655009Sshin# This code is free software; you can redistribute it and/or modify it
755009Sshin# under the terms of the GNU General Public License version 2 only, as
855009Sshin# published by the Free Software Foundation.
955009Sshin#
1055009Sshin# This code is distributed in the hope that it will be useful, but WITHOUT
1155009Sshin# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1255009Sshin# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1355009Sshin# version 2 for more details (a copy is included in the LICENSE file that
1455009Sshin# accompanied this code).
1555009Sshin#
1655009Sshin# You should have received a copy of the GNU General Public License version
1755009Sshin# 2 along with this work; if not, write to the Free Software Foundation,
1855009Sshin# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1955009Sshin#
2055009Sshin# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2155009Sshin# or visit www.oracle.com if you need additional information or have any
2255009Sshin# questions.
2355009Sshin#
2455009Sshin
2555009Sshin# This script is processed by configure before it's usable. It is run from 
2655009Sshin# the root of the build directory.
2755009Sshin
2855009Sshin
2955009Sshin##########################################################################################
30116174Sobrien# Substitutions from autoconf
3155009Sshin
3255009SshinLEGACY_BUILD_DIR=@OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU_LEGACY@
3355009Sshin
3455009SshinOPENJDK_TARGET_OS="@OPENJDK_TARGET_OS@"
3555009SshinOPENJDK_TARGET_CPU="@OPENJDK_TARGET_CPU@"
3655009Sshin
37116174SobrienAWK="@AWK@"
38116174SobrienCAT="@CAT@"
39116174SobrienCMP="@CMP@"
4055009SshinCP="@CP@"
4155009SshinCUT="@CUT@"
4255009SshinDIFF="@DIFF@"
4355009SshinDUMPBIN="@FIXPATH@ @DUMPBIN@"
4455009SshinEXPR="@EXPR@"
4555009SshinFILE="@FILE@"
4655009SshinFIND="@FIND@"
4755009SshinGREP="@GREP@"
4855009SshinJAVAP="@FIXPATH@ @BOOT_JDK@/bin/javap"
4955009SshinLDD="@LDD@"
5055009SshinMKDIR="@MKDIR@"
5155009SshinNM="@NM@"
5255009SshinOBJDUMP="@OBJDUMP@"
5355009SshinOTOOL="@OTOOL@"
5455009SshinPRINTF="@PRINTF@"
5555009SshinREADELF="@READELF@"
5655009SshinRM="@RM@"
5755009SshinSED="@SED@"
5855009SshinSORT="@SORT@"
5955009SshinSTAT="@STAT@"
6055009SshinSTRIP="@POST_STRIP_CMD@"
6155009SshinTEE="@TEE@"
6255009SshinUNIQ="@UNIQ@"
6355009SshinUNZIP="@UNZIP@"
6455009Sshin
6555009SshinSRC_ROOT="@SRC_ROOT@"
6655009Sshin
6755009Sshinif [ "$OPENJDK_TARGET_OS" = "windows" ]; then
6855009Sshin    PATH="@VS_PATH@"
6955009Sshinfi
7055009Sshin
7155009Sshin# Now locate the main script and run it.
7255009SshinREAL_COMPARE_SCRIPT="$SRC_ROOT/common/bin/compare.sh"
7355009Sshinif [ ! -e "$REAL_COMPARE_SCRIPT" ]; then
7455009Sshin    echo "Error: Cannot locate compare script, it should have been in $REAL_COMPARE_SCRIPT"
7555009Sshin    exit 1
7655009Sshinfi
7755009Sshin
7855009Sshin. "$REAL_COMPARE_SCRIPT" "$@"
7955009Sshin