aboutsummaryrefslogtreecommitdiff
path: root/contrib/gcc_update
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@bitrange.com>2004-11-14 06:31:00 +0000
committerHans-Peter Nilsson <hp@bitrange.com>2004-11-14 06:31:00 +0000
commitf5edd95184ebf5b7f2a1004d057ac2c01e447270 (patch)
tree2b2c8728c016951ee89d71855fc31967ad34375c /contrib/gcc_update
parent16126b84e9798694e576c4d48d80996a0e47d1c9 (diff)
* gcc_update (touch_files): Explicitly pass --no-print-directory.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@90614 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib/gcc_update')
-rwxr-xr-xcontrib/gcc_update8
1 files changed, 7 insertions, 1 deletions
diff --git a/contrib/gcc_update b/contrib/gcc_update
index 55a7d6a9e8a..9b39ae2989f 100755
--- a/contrib/gcc_update
+++ b/contrib/gcc_update
@@ -128,7 +128,13 @@ touch_files () {
echo ' echo Touching $@... 1>&2; \' >> Makefile.$$
echo ' touch $@' >> Makefile.$$
files_and_dependencies | sed 's,[^ ]* ,,;s,$, :,' >> Makefile.$$
- while ${MAKE-make} -s -f Makefile.$$ all | grep . > /dev/null; do
+
+ # We need to explicitly shut off the "Entering... Leaving..."
+ # messages through "--no-print-directory" to handle the case when
+ # we were called from a recursive invocation (i.e. "$(MAKE)" in a
+ # Makefile, not just make). Passing only "-s" doesn't help then,
+ # because make has helpfully added "-w" to MAKEFLAGS automatically.
+ while ${MAKE-make} -s --no-print-directory -f Makefile.$$ all | grep . > /dev/null; do
sleep 1
done 2>&1
rm -f Makefile.$$