common/autoconf/compare.sh.in

Sat, 03 Nov 2012 16:28:14 -0700

author
erikj
date
Sat, 03 Nov 2012 16:28:14 -0700
changeset 502
ed9e5635fc80
parent 494
e64f2cb57d05
child 565
39194e004ade
permissions
-rw-r--r--

8002220: build-infra: update for mac, solaris 11 issues
8002184: Fixed exclude and includes for jarsigner in new build
Reviewed-by: ohair

ohair@478 1 #!/bin/bash
ohair@478 2 #
ohair@478 3 # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
ohair@478 4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ohair@478 5 #
ohair@478 6 # This code is free software; you can redistribute it and/or modify it
ohair@478 7 # under the terms of the GNU General Public License version 2 only, as
ohair@478 8 # published by the Free Software Foundation.
ohair@478 9 #
ohair@478 10 # This code is distributed in the hope that it will be useful, but WITHOUT
ohair@478 11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ohair@478 12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ohair@478 13 # version 2 for more details (a copy is included in the LICENSE file that
ohair@478 14 # accompanied this code).
ohair@478 15 #
ohair@478 16 # You should have received a copy of the GNU General Public License version
ohair@478 17 # 2 along with this work; if not, write to the Free Software Foundation,
ohair@478 18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ohair@478 19 #
ohair@478 20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@478 21 # or visit www.oracle.com if you need additional information or have any
ohair@478 22 # questions.
ohair@478 23 #
ohair@478 24
ohair@478 25 # This script is processed by configure before it's usable. It is run from
ohair@478 26 # the root of the build directory.
ohair@478 27
ohair@478 28
ohair@478 29 ##########################################################################################
ohair@478 30 # Substitutions from autoconf
ohair@478 31
ohair@478 32 LEGACY_BUILD_DIR=@OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU_LEGACY@
ohair@478 33
ohair@478 34 OPENJDK_TARGET_OS="@OPENJDK_TARGET_OS@"
ohair@478 35 OPENJDK_TARGET_CPU="@OPENJDK_TARGET_CPU@"
ohair@478 36
ohair@478 37 AWK="@AWK@"
ohair@478 38 CAT="@CAT@"
ohair@478 39 CMP="@CMP@"
ohair@478 40 CP="@CP@"
ohair@478 41 CUT="@CUT@"
ohair@478 42 DIFF="@DIFF@"
ohair@494 43 DUMPBIN="@FIXPATH@ @DUMPBIN@"
ohair@478 44 EXPR="@EXPR@"
ohair@478 45 FILE="@FILE@"
ohair@478 46 FIND="@FIND@"
ohair@478 47 GREP="@GREP@"
ohair@494 48 JAVAP="@FIXPATH@ @BOOT_JDK@/bin/javap"
ohair@478 49 LDD="@LDD@"
ohair@478 50 MKDIR="@MKDIR@"
ohair@478 51 NM="@NM@"
ohair@478 52 OBJDUMP="@OBJDUMP@"
ohair@478 53 OTOOL="@OTOOL@"
ohair@478 54 PRINTF="@PRINTF@"
ohair@478 55 READELF="@READELF@"
ohair@478 56 RM="@RM@"
ohair@478 57 SED="@SED@"
ohair@478 58 SORT="@SORT@"
ohair@494 59 STAT="@STAT@"
ohair@478 60 STRIP="@POST_STRIP_CMD@"
ohair@478 61 TEE="@TEE@"
ohair@478 62 UNIQ="@UNIQ@"
erikj@502 63 UNPACK200="@FIXPATH@ @BOOT_JDK@/bin/unpack200"
ohair@478 64 UNZIP="@UNZIP@"
ohair@478 65
ohair@478 66 SRC_ROOT="@SRC_ROOT@"
ohair@478 67
ohair@494 68 if [ "$OPENJDK_TARGET_OS" = "windows" ]; then
ohair@494 69 PATH="@VS_PATH@"
ohair@478 70 fi
ohair@478 71
ohair@494 72 # Now locate the main script and run it.
ohair@494 73 REAL_COMPARE_SCRIPT="$SRC_ROOT/common/bin/compare.sh"
ohair@494 74 if [ ! -e "$REAL_COMPARE_SCRIPT" ]; then
ohair@494 75 echo "Error: Cannot locate compare script, it should have been in $REAL_COMPARE_SCRIPT"
ohair@478 76 exit 1
ohair@478 77 fi
ohair@478 78
ohair@494 79 . "$REAL_COMPARE_SCRIPT" "$@"

mercurial