< prev index next >

make/autoconf/compare.sh.in

Print this page




  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #
  24 
  25 # This script is processed by configure before it's usable. It is run from
  26 # the root of the build directory.
  27 
  28 
  29 ##########################################################################################
  30 # Substitutions from autoconf
  31 
  32 export LEGACY_BUILD_DIR=@OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU_LEGACY@
  33 
  34 export OPENJDK_BUILD_OS_ENV="@OPENJDK_BUILD_OS_ENV@"
  35 export OPENJDK_TARGET_OS="@OPENJDK_TARGET_OS@"
  36 export OPENJDK_TARGET_CPU="@OPENJDK_TARGET_CPU@"
  37 export DEBUG_LEVEL="@DEBUG_LEVEL@"
  38 
  39 export AWK="@AWK@"
  40 export BASH="@BASH@"
  41 export CAT="@CAT@"
  42 export CMP="@CMP@"
  43 export CP="@CP@"
  44 export CUT="@CUT@"
  45 export DIFF="@DIFF@"
  46 export DUMPBIN="@FIXPATH@ @DUMPBIN@"
  47 export EXPR="@EXPR@"
  48 export FILE="@FILE@"
  49 export FIND="@FIND@"
  50 export GREP="@GREP@"
  51 export GUNZIP="@GUNZIP@"
  52 export LDD="@LDD@"
  53 export LN="@LN@"
  54 export MKDIR="@MKDIR@"


  57 export NM="@GNM@"
  58 export OBJDUMP="@OBJDUMP@"
  59 export OTOOL="@OTOOL@"
  60 export PRINTF="@PRINTF@"
  61 export READELF="@READELF@"
  62 export RM="@RM@"
  63 export SED="@SED@"
  64 export SORT="@SORT@"
  65 export STAT="@STAT@"
  66 export STRIP="@STRIP@ @STRIPFLAGS@"
  67 export TAR="@TAR@"
  68 export TEE="@TEE@"
  69 export UNIQ="@UNIQ@"
  70 export UNPACK200="@FIXPATH@ @BOOT_JDK@/bin/unpack200"
  71 export UNARCHIVE="@UNZIP@ -q -o"
  72 
  73 export TOPDIR="@TOPDIR@"
  74 export OUTPUTDIR="@OUTPUTDIR@"
  75 
  76 if [ "@COMPILE_TYPE@" != "cross" ]; then
  77   export JAVAP="@FIXPATH@ $OUTPUTDIR/jdk/bin/javap @JAVA_TOOL_FLAGS_SMALL@"
  78   export JIMAGE="@FIXPATH@ $OUTPUTDIR/jdk/bin/jimage"
  79   export JMOD="@FIXPATH@ $OUTPUTDIR/jdk/bin/jmod"
  80 elif [ "@CREATE_BUILDJDK@" = "true" ]; then
  81   export JAVAP="@FIXPATH@ $OUTPUTDIR/buildjdk/jdk/bin/javap @JAVA_TOOL_FLAGS_SMALL@"
  82   export JIMAGE="@FIXPATH@ $OUTPUTDIR/buildjdk/jdk/bin/jimage"
  83   export JMOD="@FIXPATH@ $OUTPUTDIR/buildjdk/jdk/bin/jmod"
  84 else
  85   export JAVAP="@FIXPATH@ @BUILD_JDK@/bin/javap @JAVA_TOOL_FLAGS_SMALL@"
  86   export JIMAGE="@FIXPATH@ @BUILD_JDK@/bin/jimage"
  87   export JMOD="@FIXPATH@ @BUILD_JDK@/bin/jmod"
  88 fi
  89 
  90 if [ "$OPENJDK_TARGET_OS" = "windows" ]; then
  91   if [ "$OPENJDK_BUILD_OS_ENV" = "windows.wsl" ]; then
  92     export FIXPATH_PATH="@VS_PATH_WINDOWS@"
  93     export WSLENV="$WSLENV:FIXPATH_PATH:DEBUG_FIXPATH"
  94   else
  95     export PATH="@VS_PATH@"
  96   fi
  97 fi
  98 
  99 # Now locate the main script and run it.
 100 REAL_COMPARE_SCRIPT="$TOPDIR/make/scripts/compare.sh"
 101 if [ ! -e "$REAL_COMPARE_SCRIPT" ]; then
 102   echo "Error: Cannot locate compare script, it should have been in $REAL_COMPARE_SCRIPT"
 103   exit 1
 104 fi
 105 
 106 # Rotate logs
 107 $RM $OUTPUTDIR/compare.log.old 2> /dev/null
 108 $MV $OUTPUTDIR/compare.log $OUTPUTDIR/compare.log.old 2> /dev/null
 109 
 110 export SCRIPT_DIR="$( cd "$( dirname "$0" )" > /dev/null && pwd )"
 111 
 112 $BASH $TOPDIR/make/scripts/logger.sh $OUTPUTDIR/compare.log $BASH "$REAL_COMPARE_SCRIPT" "$@"


  14 # accompanied this code).
  15 #
  16 # You should have received a copy of the GNU General Public License version
  17 # 2 along with this work; if not, write to the Free Software Foundation,
  18 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  19 #
  20 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  21 # or visit www.oracle.com if you need additional information or have any
  22 # questions.
  23 #
  24 
  25 # This script is processed by configure before it's usable. It is run from
  26 # the root of the build directory.
  27 
  28 
  29 ##########################################################################################
  30 # Substitutions from autoconf
  31 
  32 export LEGACY_BUILD_DIR=@OPENJDK_TARGET_OS@-@OPENJDK_TARGET_CPU_LEGACY@
  33 

  34 export OPENJDK_TARGET_OS="@OPENJDK_TARGET_OS@"
  35 export OPENJDK_TARGET_CPU="@OPENJDK_TARGET_CPU@"
  36 export DEBUG_LEVEL="@DEBUG_LEVEL@"
  37 
  38 export AWK="@AWK@"
  39 export BASH="@BASH@"
  40 export CAT="@CAT@"
  41 export CMP="@CMP@"
  42 export CP="@CP@"
  43 export CUT="@CUT@"
  44 export DIFF="@DIFF@"
  45 export DUMPBIN="@FIXPATH@ @DUMPBIN@"
  46 export EXPR="@EXPR@"
  47 export FILE="@FILE@"
  48 export FIND="@FIND@"
  49 export GREP="@GREP@"
  50 export GUNZIP="@GUNZIP@"
  51 export LDD="@LDD@"
  52 export LN="@LN@"
  53 export MKDIR="@MKDIR@"


  56 export NM="@GNM@"
  57 export OBJDUMP="@OBJDUMP@"
  58 export OTOOL="@OTOOL@"
  59 export PRINTF="@PRINTF@"
  60 export READELF="@READELF@"
  61 export RM="@RM@"
  62 export SED="@SED@"
  63 export SORT="@SORT@"
  64 export STAT="@STAT@"
  65 export STRIP="@STRIP@ @STRIPFLAGS@"
  66 export TAR="@TAR@"
  67 export TEE="@TEE@"
  68 export UNIQ="@UNIQ@"
  69 export UNPACK200="@FIXPATH@ @BOOT_JDK@/bin/unpack200"
  70 export UNARCHIVE="@UNZIP@ -q -o"
  71 
  72 export TOPDIR="@TOPDIR@"
  73 export OUTPUTDIR="@OUTPUTDIR@"
  74 
  75 if [ "@COMPILE_TYPE@" != "cross" ]; then
  76     export JAVAP="@FIXPATH@ $OUTPUTDIR/jdk/bin/javap @JAVA_TOOL_FLAGS_SMALL@"
  77     export JIMAGE="@FIXPATH@ $OUTPUTDIR/jdk/bin/jimage"

  78 elif [ "@CREATE_BUILDJDK@" = "true" ]; then
  79     export JAVAP="@FIXPATH@ $OUTPUTDIR/buildjdk/jdk/bin/javap @JAVA_TOOL_FLAGS_SMALL@"
  80     export JIMAGE="@FIXPATH@ $OUTPUTDIR/buildjdk/jdk/bin/jimage"

  81 else
  82     export JAVAP="@FIXPATH@ @BUILD_JDK@/bin/javap @JAVA_TOOL_FLAGS_SMALL@"
  83     export JIMAGE="@FIXPATH@ @BUILD_JDK@/bin/jimage"

  84 fi
  85 
  86 if [ "$OPENJDK_TARGET_OS" = "windows" ]; then
  87   export PATH="@VS_PATH@"





  88 fi
  89 
  90 # Now locate the main script and run it.
  91 REAL_COMPARE_SCRIPT="$TOPDIR/make/scripts/compare.sh"
  92 if [ ! -e "$REAL_COMPARE_SCRIPT" ]; then
  93   echo "Error: Cannot locate compare script, it should have been in $REAL_COMPARE_SCRIPT"
  94   exit 1
  95 fi
  96 
  97 # Rotate logs
  98 $RM $OUTPUTDIR/compare.log.old 2> /dev/null
  99 $MV $OUTPUTDIR/compare.log $OUTPUTDIR/compare.log.old 2> /dev/null
 100 
 101 export SCRIPT_DIR="$( cd "$( dirname "$0" )" > /dev/null && pwd )"
 102 
 103 $BASH $TOPDIR/make/scripts/logger.sh $OUTPUTDIR/compare.log $BASH "$REAL_COMPARE_SCRIPT" "$@"
< prev index next >