annotate make/autoconf/compare.sh.in @ 49578:7c82bb507446

8190333: sun/security/ssl/X509KeyManager/PreferredKey.java failed with "Failed to get the preferable key aliases" Reviewed-by: mullan
author amjiang
date Tue, 10 Apr 2018 18:16:12 -0700
parents fdac20095dff
children 50677f43ac3d
rev   line source
ohair@13697 1 #!/bin/bash
ohair@13697 2 #
ihse@41458 3 # Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
ohair@13697 4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
ohair@13697 5 #
ohair@13697 6 # This code is free software; you can redistribute it and/or modify it
ohair@13697 7 # under the terms of the GNU General Public License version 2 only, as
ohair@13697 8 # published by the Free Software Foundation.
ohair@13697 9 #
ohair@13697 10 # This code is distributed in the hope that it will be useful, but WITHOUT
ohair@13697 11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
ohair@13697 12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
ohair@13697 13 # version 2 for more details (a copy is included in the LICENSE file that
ohair@13697 14 # accompanied this code).
ohair@13697 15 #
ohair@13697 16 # You should have received a copy of the GNU General Public License version
ohair@13697 17 # 2 along with this work; if not, write to the Free Software Foundation,
ohair@13697 18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
ohair@13697 19 #
ohair@13697 20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@13697 21 # or visit www.oracle.com if you need additional information or have any
ohair@13697 22 # questions.
ohair@13697 23 #
ohair@13697 24
ihse@20363 25 # This script is processed by configure before it's usable. It is run from
ohair@13697 26 # the root of the build directory.
ohair@13697 27
ohair@13697 28
ohair@13697 29 ##########################################################################################
ohair@13697 30 # Substitutions from autoconf
ohair@13697 31
ihse@32718 32 export LEGACY_BUILD_DIR=@OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU_LEGACY@
ohair@13697 33
erikj@37651 34 export OPENJDK_TARGET_OS="@OPENJDK_TARGET_OS@"
ihse@32718 35 export OPENJDK_TARGET_CPU="@OPENJDK_TARGET_CPU@"
erikj@37402 36 export DEBUG_LEVEL="@DEBUG_LEVEL@"
ohair@13697 37
ihse@32718 38 export AWK="@AWK@"
ihse@32718 39 export BASH="@BASH@"
ihse@32718 40 export CAT="@CAT@"
ihse@32718 41 export CMP="@CMP@"
ihse@32718 42 export CP="@CP@"
ihse@32718 43 export CUT="@CUT@"
ihse@32718 44 export DIFF="@DIFF@"
ihse@32718 45 export DUMPBIN="@FIXPATH@ @DUMPBIN@"
ihse@32718 46 export EXPR="@EXPR@"
ihse@32718 47 export FILE="@FILE@"
ihse@32718 48 export FIND="@FIND@"
ihse@32718 49 export GREP="@GREP@"
erikj@37972 50 export GUNZIP="@GUNZIP@"
ihse@32718 51 export LDD="@LDD@"
ihse@32718 52 export LN="@LN@"
ihse@32718 53 export MKDIR="@MKDIR@"
ihse@32718 54 export MV="@MV@"
ihse@32718 55 export NAWK="@NAWK@"
ihse@32718 56 export NM="@GNM@"
ihse@32718 57 export OBJDUMP="@OBJDUMP@"
ihse@32718 58 export OTOOL="@OTOOL@"
ihse@32718 59 export PRINTF="@PRINTF@"
ihse@32718 60 export READELF="@READELF@"
ihse@32718 61 export RM="@RM@"
ihse@32718 62 export SED="@SED@"
ihse@32718 63 export SORT="@SORT@"
ihse@32718 64 export STAT="@STAT@"
ddehaven@32812 65 export STRIP="@STRIP@ @STRIPFLAGS@"
erikj@37972 66 export TAR="@TAR@"
ihse@32718 67 export TEE="@TEE@"
ihse@32718 68 export UNIQ="@UNIQ@"
ihse@32718 69 export UNPACK200="@FIXPATH@ @BOOT_JDK@/bin/unpack200"
erikj@37972 70 export UNARCHIVE="@UNZIP@ -q -o"
ohair@13697 71
ihse@47252 72 export TOPDIR="@TOPDIR@"
ihse@47253 73 export OUTPUTDIR="@OUTPUTDIR@"
ohair@13697 74
erikj@36789 75 if [ "@COMPILE_TYPE@" != "cross" ]; then
ihse@47253 76 export JAVAP="@FIXPATH@ $OUTPUTDIR/jdk/bin/javap @JAVA_TOOL_FLAGS_SMALL@"
ihse@47253 77 export JIMAGE="@FIXPATH@ $OUTPUTDIR/jdk/bin/jimage"
erikj@36789 78 elif [ "@CREATE_BUILDJDK@" = "true" ]; then
ihse@47253 79 export JAVAP="@FIXPATH@ $OUTPUTDIR/buildjdk/jdk/bin/javap @JAVA_TOOL_FLAGS_SMALL@"
ihse@47253 80 export JIMAGE="@FIXPATH@ $OUTPUTDIR/buildjdk/jdk/bin/jimage"
erikj@36789 81 else
erikj@36789 82 export JAVAP="@FIXPATH@ @BUILD_JDK@/bin/javap @JAVA_TOOL_FLAGS_SMALL@"
erikj@36789 83 export JIMAGE="@FIXPATH@ @BUILD_JDK@/bin/jimage"
erikj@36789 84 fi
erikj@36789 85
ohair@14111 86 if [ "$OPENJDK_TARGET_OS" = "windows" ]; then
ihse@32718 87 export PATH="@VS_PATH@"
ohair@13697 88 fi
ohair@13697 89
ohair@14111 90 # Now locate the main script and run it.
ihse@47252 91 REAL_COMPARE_SCRIPT="$TOPDIR/make/scripts/compare.sh"
ohair@14111 92 if [ ! -e "$REAL_COMPARE_SCRIPT" ]; then
ihse@20363 93 echo "Error: Cannot locate compare script, it should have been in $REAL_COMPARE_SCRIPT"
ihse@20363 94 exit 1
ohair@13697 95 fi
ohair@13697 96
ihse@32718 97 # Rotate logs
ihse@47253 98 $RM $OUTPUTDIR/compare.log.old 2> /dev/null
ihse@47253 99 $MV $OUTPUTDIR/compare.log $OUTPUTDIR/compare.log.old 2> /dev/null
ihse@32718 100
ihse@33441 101 export SCRIPT_DIR="$( cd "$( dirname "$0" )" > /dev/null && pwd )"
ihse@33441 102
ihse@47253 103 $BASH $TOPDIR/make/scripts/logger.sh $OUTPUTDIR/compare.log $BASH "$REAL_COMPARE_SCRIPT" "$@"