ohair@478: #!/bin/bash ohair@478: # kevinw@2212: # Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. ohair@478: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. ohair@478: # ohair@478: # This code is free software; you can redistribute it and/or modify it ohair@478: # under the terms of the GNU General Public License version 2 only, as ohair@478: # published by the Free Software Foundation. ohair@478: # ohair@478: # This code is distributed in the hope that it will be useful, but WITHOUT ohair@478: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or ohair@478: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ohair@478: # version 2 for more details (a copy is included in the LICENSE file that ohair@478: # accompanied this code). ohair@478: # ohair@478: # You should have received a copy of the GNU General Public License version ohair@478: # 2 along with this work; if not, write to the Free Software Foundation, ohair@478: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. ohair@478: # ohair@478: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA ohair@478: # or visit www.oracle.com if you need additional information or have any ohair@478: # questions. ohair@478: # ohair@478: ihse@839: # This script is processed by configure before it's usable. It is run from ohair@478: # the root of the build directory. ohair@478: ohair@478: ohair@478: ########################################################################################## ohair@478: # Substitutions from autoconf ohair@478: ohair@478: LEGACY_BUILD_DIR=@OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU_LEGACY@ ohair@478: ohair@478: OPENJDK_TARGET_OS="@OPENJDK_TARGET_OS@" ohair@478: OPENJDK_TARGET_CPU="@OPENJDK_TARGET_CPU@" ohair@478: ohair@478: AWK="@AWK@" ohair@478: CAT="@CAT@" ohair@478: CMP="@CMP@" ohair@478: CP="@CP@" ohair@478: CUT="@CUT@" ohair@478: DIFF="@DIFF@" ohair@494: DUMPBIN="@FIXPATH@ @DUMPBIN@" ohair@478: EXPR="@EXPR@" ohair@478: FILE="@FILE@" ohair@478: FIND="@FIND@" ohair@478: GREP="@GREP@" ohair@494: JAVAP="@FIXPATH@ @BOOT_JDK@/bin/javap" ohair@478: LDD="@LDD@" ohair@478: MKDIR="@MKDIR@" erikj@565: NAWK="@NAWK@" erikj@672: NM="@GNM@" ohair@478: OBJDUMP="@OBJDUMP@" ohair@478: OTOOL="@OTOOL@" ohair@478: PRINTF="@PRINTF@" ohair@478: READELF="@READELF@" ohair@478: RM="@RM@" ohair@478: SED="@SED@" ohair@478: SORT="@SORT@" ohair@494: STAT="@STAT@" ohair@478: STRIP="@POST_STRIP_CMD@" ohair@478: TEE="@TEE@" ohair@478: UNIQ="@UNIQ@" erikj@502: UNPACK200="@FIXPATH@ @BOOT_JDK@/bin/unpack200" ohair@478: UNZIP="@UNZIP@" ohair@478: kevinw@2212: SRC_ROOT="@TOPDIR@" ohair@478: ohair@494: if [ "$OPENJDK_TARGET_OS" = "windows" ]; then ihse@839: PATH="@VS_PATH@" ohair@478: fi ohair@478: ohair@494: # Now locate the main script and run it. ohair@494: REAL_COMPARE_SCRIPT="$SRC_ROOT/common/bin/compare.sh" ohair@494: if [ ! -e "$REAL_COMPARE_SCRIPT" ]; then ihse@839: echo "Error: Cannot locate compare script, it should have been in $REAL_COMPARE_SCRIPT" ihse@839: exit 1 ohair@478: fi ohair@478: ohair@494: . "$REAL_COMPARE_SCRIPT" "$@"