]> gcc.gnu.org Git - gcc.git/blobdiff - contrib/gcc_build
gcc_build: Output information about the commands used to configure the compiler.
[gcc.git] / contrib / gcc_build
index f20366e96008405e3bf3641d504042bb92fae83f..4d0eea30b6b1a5f0d17df09330760404098781d1 100755 (executable)
@@ -9,7 +9,7 @@
 # Contents:
 #   Script to automatically download and build GCC.
 #
-# Copyright (c) 2000 Free Software Foundation.
+# Copyright (c) 2000, 2001 Free Software Foundation.
 #
 # This file is part of GNU CC.
 #
@@ -127,7 +127,7 @@ update_gcc() {
     changedir ${DESTINATION}
 
     # Update the tree
-    (./contrib/gcc_update | tee -a ${LOGFILE}) || \
+    ./contrib/gcc_update -d || \
        error "Could not update GCC"
 }
 
@@ -146,8 +146,8 @@ configure_gcc() {
     changedir ${OBJDIR}
 
     # Configure the tree.
-    (eval ${DESTINATION}/configure ${CONFIGURE_OPTIONS} 2>&1 | 
-        tee -a ${LOGFILE}) || \
+    echo "Configuring: ${DESTINATION}/configure ${CONFIGURE_OPTIONS}"
+    eval ${DESTINATION}/configure ${CONFIGURE_OPTIONS} || \
        error "Could not configure the compiler"
 }
 
@@ -160,8 +160,8 @@ bootstrap_gcc() {
     changedir ${OBJDIR}
 
     # Bootstrap the compiler
-    (eval ${MAKE} ${MAKE_BOOTSTRAP_OPTIONS} bootstrap 2>&1 |
-       tee -a ${LOGFILE}) || \
+    echo "Building: ${MAKE} ${MAKE_BOOTSTRAP_OPTIONS} bootstrap"
+    eval ${MAKE} ${MAKE_BOOTSTRAP_OPTIONS} bootstrap || \
        error "Could not bootstrap the compiler"
 }
 
@@ -174,8 +174,8 @@ test_gcc() {
     changedir ${OBJDIR}
 
     echo "Running tests...  This will take a while."
-    (${MAKE} -k check 2>&1 | tee -a ${LOGFILE})
-    (${DESTINATION}/contrib/test_summary | tee -a ${LOGFILE})
+    ${MAKE} -k check
+    ${DESTINATION}/contrib/test_summary
 }
 
 # Export the GCC source tree.
@@ -202,8 +202,7 @@ install_gcc() {
     # Go to the object directory.
     changedir ${OBJDIR}
 
-    (${MAKE} install 2>&1 | tee -a ${LOGFILE}) || \
-       error "Installation failed"
+    ${MAKE} install || error "Installation failed"
 }
 
 ########################################################################
@@ -225,8 +224,6 @@ DESTINATION="${HOME}/dev/gcc"
 # object directory.
 OBJDIR="objdir"
 
-# The file where information will be logged.
-LOGFILE=${HOME}/build-gcc.$$.log
 # The file where the tarred up sources will be placed.
 TARFILE="${HOME}/dev/gcc.tgz"
 
@@ -286,11 +283,6 @@ if [ ${CHECKOUT} -ne 0 ] && [ ${UPDATE} -ne 0 ]; then
     error "Cannot checkout and update simultaneously"
 fi
 
-# Remove any old logfiles.
-rm -f ${LOGFILE}
-# Tell the user where to find the logfile.
-echo "gcc_build: The logfile for this run is ${LOGFILE}"
-
 # Checkout the tree.
 if [ ${CHECKOUT} -ne 0 ]; then
     checkout_gcc
This page took 0.03368 seconds and 5 git commands to generate.