Commit 9f56c004 by Mark Mitchell Committed by Mark Mitchell

gcc_build (MAKE): New variable.

	* gcc_build (MAKE): New variable.
	(build_gcc): Use it.  Fix logging of errors.
	(install_gcc): Likewise.

From-SVN: r37180
parent 32ee391b
2000-10-31 Mark Mitchell <mark@codesourcery.com>
* gcc_build (MAKE): New variable.
(build_gcc): Use it. Fix logging of errors.
(install_gcc): Likewise.
2000-10-29 Mark Mitchell <mark@codesourcery.com> 2000-10-29 Mark Mitchell <mark@codesourcery.com>
* gcc_build: Save the output from CVS into the logfile as well. * gcc_build: Save the output from CVS into the logfile as well.
......
...@@ -37,6 +37,12 @@ ...@@ -37,6 +37,12 @@
# If you are using password-based CVS, you must manually log in, and # If you are using password-based CVS, you must manually log in, and
# not log out from, the CVS server before running this script. # not log out from, the CVS server before running this script.
# You can set the following variables in the environment. They
# have no corresponding command-line options because they should
# only be needed infrequently:
#
# MAKE The path to `make'.
######################################################################## ########################################################################
# Functions # Functions
######################################################################## ########################################################################
...@@ -142,8 +148,8 @@ build_gcc() { ...@@ -142,8 +148,8 @@ build_gcc() {
error "Could not configure GCC" error "Could not configure GCC"
# Bootstrap the compiler # Bootstrap the compiler
(eval make ${MAKE_OPTIONS} bootstrap | (eval ${MAKE} ${MAKE_OPTIONS} bootstrap 2>&1 |
tee -a ${LOGFILE}) 2>&1 || \ tee -a ${LOGFILE}) || \
error "Could not build GCC" error "Could not build GCC"
} }
...@@ -156,7 +162,7 @@ test_gcc() { ...@@ -156,7 +162,7 @@ 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 | tee -a ${LOGFILE}) 2>&1 (${MAKE} -k check 2>&1 | tee -a ${LOGFILE})
(${DESTINATION}/contrib/test_summary | tee -a ${LOGFILE}) (${DESTINATION}/contrib/test_summary | tee -a ${LOGFILE})
} }
...@@ -184,7 +190,7 @@ install_gcc() { ...@@ -184,7 +190,7 @@ install_gcc() {
# Go to the object directory. # Go to the object directory.
changedir ${OBJDIR} changedir ${OBJDIR}
make install > ${LOGFILE} 2>&1 || \ (${MAKE} install 2>&1 | tee -a ${LOGFILE}) || \
error "Installation failed" error "Installation failed"
} }
...@@ -214,6 +220,8 @@ TARFILE="${HOME}/dev/gcc.tgz" ...@@ -214,6 +220,8 @@ TARFILE="${HOME}/dev/gcc.tgz"
# Options to pass to configure. # Options to pass to configure.
CONFIGURE_OPTIONS= CONFIGURE_OPTIONS=
# The `make' program.
MAKE=${MAKE:-make}
# Options to pass to make. # Options to pass to make.
MAKE_OPTIONS= MAKE_OPTIONS=
......
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