compare.sh.in revision 492:e64f2cb57d05
174462Salfred#!/bin/bash
274462Salfred#
3261046Smav# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
4261046Smav# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5261046Smav#
68870Srgrimes# This code is free software; you can redistribute it and/or modify it
7261046Smav# under the terms of the GNU General Public License version 2 only, as
8261046Smav# published by the Free Software Foundation.
9261046Smav#
10261046Smav# This code is distributed in the hope that it will be useful, but WITHOUT
11261046Smav# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12261046Smav# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13261046Smav# version 2 for more details (a copy is included in the LICENSE file that
14261046Smav# accompanied this code).
15261046Smav#
16261046Smav# You should have received a copy of the GNU General Public License version
17261046Smav# 2 along with this work; if not, write to the Free Software Foundation,
18261046Smav# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19261046Smav#
20261046Smav# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21261046Smav# or visit www.oracle.com if you need additional information or have any
22261046Smav# questions.
23261046Smav#
24261046Smav
25261046Smav# This script is processed by configure before it's usable. It is run from 
26261046Smav# the root of the build directory.
27261046Smav
28261046Smav
291901Swollman##########################################################################################
301901Swollman# Substitutions from autoconf
311901Swollman
32136581SobrienLEGACY_BUILD_DIR=@OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU_LEGACY@
3392990Sobrien
341901SwollmanOPENJDK_TARGET_OS="@OPENJDK_TARGET_OS@"
3592990SobrienOPENJDK_TARGET_CPU="@OPENJDK_TARGET_CPU@"
3692990Sobrien
371901SwollmanAWK="@AWK@"
381901SwollmanCAT="@CAT@"
391901SwollmanCMP="@CMP@"
401901SwollmanCP="@CP@"
411901SwollmanCUT="@CUT@"
4275094SiedowseDIFF="@DIFF@"
4374462SalfredDUMPBIN="@FIXPATH@ @DUMPBIN@"
4474462SalfredEXPR="@EXPR@"
4574462SalfredFILE="@FILE@"
461901SwollmanFIND="@FIND@"
4716270SjraynardGREP="@GREP@"
4874462SalfredJAVAP="@FIXPATH@ @BOOT_JDK@/bin/javap"
4916270SjraynardLDD="@LDD@"
5071579SdeischenMKDIR="@MKDIR@"
511901SwollmanNM="@NM@"
5274462SalfredOBJDUMP="@OBJDUMP@"
53111618SnectarOTOOL="@OTOOL@"
54156090SdeischenPRINTF="@PRINTF@"
5516270SjraynardREADELF="@READELF@"
561901SwollmanRM="@RM@"
571901SwollmanSED="@SED@"
581901SwollmanSORT="@SORT@"
59109359SmbrSTAT="@STAT@"
60109359SmbrSTRIP="@POST_STRIP_CMD@"
611901SwollmanTEE="@TEE@"
62241007SpfgUNIQ="@UNIQ@"
63241007SpfgUNZIP="@UNZIP@"
64241007Spfg
651901SwollmanSRC_ROOT="@SRC_ROOT@"
6674462Salfred
6774462Salfredif [ "$OPENJDK_TARGET_OS" = "windows" ]; then
68109359Smbr    PATH="@VS_PATH@"
6974462Salfredfi
70109904Smbr
711901Swollman# Now locate the main script and run it.
7274462SalfredREAL_COMPARE_SCRIPT="$SRC_ROOT/common/bin/compare.sh"
731901Swollmanif [ ! -e "$REAL_COMPARE_SCRIPT" ]; then
741901Swollman    echo "Error: Cannot locate compare script, it should have been in $REAL_COMPARE_SCRIPT"
751901Swollman    exit 1
7682496Sbdefi
771901Swollman
781901Swollman. "$REAL_COMPARE_SCRIPT" "$@"
79109359Smbr