compare.sh.in revision 1236:bebfcf0b68ea
1176771Sraj#!/bin/bash
2192532Sraj#
3176771Sraj# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
4176771Sraj# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5176771Sraj#
6176771Sraj# This code is free software; you can redistribute it and/or modify it
7176771Sraj# under the terms of the GNU General Public License version 2 only, as
8176771Sraj# published by the Free Software Foundation.
9176771Sraj#
10176771Sraj# This code is distributed in the hope that it will be useful, but WITHOUT
11176771Sraj# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12176771Sraj# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13176771Sraj# version 2 for more details (a copy is included in the LICENSE file that
14176771Sraj# accompanied this code).
15176771Sraj#
16176771Sraj# You should have received a copy of the GNU General Public License version
17176771Sraj# 2 along with this work; if not, write to the Free Software Foundation,
18176771Sraj# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19176771Sraj#
20176771Sraj# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21176771Sraj# or visit www.oracle.com if you need additional information or have any
22176771Sraj# questions.
23176771Sraj#
24176771Sraj
25176771Sraj# This script is processed by configure before it's usable. It is run from
26176771Sraj# the root of the build directory.
27176771Sraj
28176771Sraj
29176771Sraj##########################################################################################
30176771Sraj# Substitutions from autoconf
31176771Sraj
32176771SrajLEGACY_BUILD_DIR=@OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU_LEGACY@
33176771Sraj
34176771SrajOPENJDK_TARGET_OS="@OPENJDK_TARGET_OS@"
35176771SrajOPENJDK_TARGET_CPU="@OPENJDK_TARGET_CPU@"
36176771Sraj
37176771SrajAWK="@AWK@"
38176771SrajCAT="@CAT@"
39187151SrajCMP="@CMP@"
40187151SrajCP="@CP@"
41187151SrajCUT="@CUT@"
42190701SmarcelDIFF="@DIFF@"
43187151SrajDUMPBIN="@FIXPATH@ @DUMPBIN@"
44187151SrajEXPR="@EXPR@"
45187151SrajFILE="@FILE@"
46187151SrajFIND="@FIND@"
47187151SrajGREP="@GREP@"
48187151SrajJAVAP="@FIXPATH@ @BOOT_JDK@/bin/javap @JAVA_TOOL_FLAGS_SMALL@"
49176771SrajLDD="@LDD@"
50176771SrajLN="@LN@"
51176771SrajMKDIR="@MKDIR@"
52176771SrajNAWK="@NAWK@"
53176771SrajNM="@GNM@"
54176771SrajOBJDUMP="@OBJDUMP@"
55176771SrajOTOOL="@OTOOL@"
56176771SrajPRINTF="@PRINTF@"
57187149SrajREADELF="@READELF@"
58176771SrajRM="@RM@"
59176771SrajSED="@SED@"
60176771SrajSORT="@SORT@"
61176771SrajSTAT="@STAT@"
62176771SrajSTRIP="@POST_STRIP_CMD@"
63224611SmarcelTEE="@TEE@"
64176771SrajUNIQ="@UNIQ@"
65176771SrajUNPACK200="@FIXPATH@ @BOOT_JDK@/bin/unpack200"
66176771SrajUNZIP="@UNZIP@"
67222813Sattilio
68192532SrajSRC_ROOT="@TOPDIR@"
69176771Sraj
70176771Srajif [ "$OPENJDK_TARGET_OS" = "windows" ]; then
71176771Sraj  PATH="@VS_PATH@"
72176771Srajfi
73176771Sraj
74176771Sraj# Now locate the main script and run it.
75176771SrajREAL_COMPARE_SCRIPT="$SRC_ROOT/common/bin/compare.sh"
76176771Srajif [ ! -e "$REAL_COMPARE_SCRIPT" ]; then
77176771Sraj  echo "Error: Cannot locate compare script, it should have been in $REAL_COMPARE_SCRIPT"
78176771Sraj  exit 1
79176771Srajfi
80176771Sraj
81176771Sraj. "$REAL_COMPARE_SCRIPT" "$@"
82176771Sraj