Commit c132c0e3 by Mark Mitchell Committed by Mark Mitchell

* gcc_build: Remove code to put information in a log file.

From-SVN: r37624
parent 3fe30ff6
2000-11-21 Mark Mitchell <mark@codesourcery.com>
* gcc_build: Remove code to put information in a log file.
2000-11-19 Zack Weinberg <zackw@stanford.edu> 2000-11-19 Zack Weinberg <zackw@stanford.edu>
* texi2pod.pl: * texi2pod.pl:
......
...@@ -127,7 +127,7 @@ update_gcc() { ...@@ -127,7 +127,7 @@ update_gcc() {
changedir ${DESTINATION} changedir ${DESTINATION}
# Update the tree # Update the tree
(./contrib/gcc_update | tee -a ${LOGFILE}) || \ ./contrib/gcc_update || \
error "Could not update GCC" error "Could not update GCC"
} }
...@@ -146,8 +146,7 @@ configure_gcc() { ...@@ -146,8 +146,7 @@ configure_gcc() {
changedir ${OBJDIR} changedir ${OBJDIR}
# Configure the tree. # Configure the tree.
(eval ${DESTINATION}/configure ${CONFIGURE_OPTIONS} 2>&1 | eval ${DESTINATION}/configure ${CONFIGURE_OPTIONS} || \
tee -a ${LOGFILE}) || \
error "Could not configure the compiler" error "Could not configure the compiler"
} }
...@@ -160,8 +159,7 @@ bootstrap_gcc() { ...@@ -160,8 +159,7 @@ bootstrap_gcc() {
changedir ${OBJDIR} changedir ${OBJDIR}
# Bootstrap the compiler # Bootstrap the compiler
(eval ${MAKE} ${MAKE_BOOTSTRAP_OPTIONS} bootstrap 2>&1 | eval ${MAKE} ${MAKE_BOOTSTRAP_OPTIONS} bootstrap || \
tee -a ${LOGFILE}) || \
error "Could not bootstrap the compiler" error "Could not bootstrap the compiler"
} }
...@@ -174,8 +172,8 @@ test_gcc() { ...@@ -174,8 +172,8 @@ test_gcc() {
changedir ${OBJDIR} changedir ${OBJDIR}
echo "Running tests... This will take a while." echo "Running tests... This will take a while."
(${MAKE} -k check 2>&1 | tee -a ${LOGFILE}) ${MAKE} -k check
(${DESTINATION}/contrib/test_summary | tee -a ${LOGFILE}) ${DESTINATION}/contrib/test_summary
} }
# Export the GCC source tree. # Export the GCC source tree.
...@@ -202,8 +200,7 @@ install_gcc() { ...@@ -202,8 +200,7 @@ install_gcc() {
# Go to the object directory. # Go to the object directory.
changedir ${OBJDIR} changedir ${OBJDIR}
(${MAKE} install 2>&1 | tee -a ${LOGFILE}) || \ ${MAKE} install || error "Installation failed"
error "Installation failed"
} }
######################################################################## ########################################################################
...@@ -225,8 +222,6 @@ DESTINATION="${HOME}/dev/gcc" ...@@ -225,8 +222,6 @@ DESTINATION="${HOME}/dev/gcc"
# object directory. # object directory.
OBJDIR="objdir" OBJDIR="objdir"
# The file where information will be logged.
LOGFILE=${HOME}/build-gcc.$$.log
# The file where the tarred up sources will be placed. # The file where the tarred up sources will be placed.
TARFILE="${HOME}/dev/gcc.tgz" TARFILE="${HOME}/dev/gcc.tgz"
...@@ -286,11 +281,6 @@ if [ ${CHECKOUT} -ne 0 ] && [ ${UPDATE} -ne 0 ]; then ...@@ -286,11 +281,6 @@ if [ ${CHECKOUT} -ne 0 ] && [ ${UPDATE} -ne 0 ]; then
error "Cannot checkout and update simultaneously" error "Cannot checkout and update simultaneously"
fi 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. # Checkout the tree.
if [ ${CHECKOUT} -ne 0 ]; then if [ ${CHECKOUT} -ne 0 ]; then
checkout_gcc checkout_gcc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment