From 0ce26b4d008091a182b8db43d6dc3fe28613aea6 Mon Sep 17 00:00:00 2001 From: "bstell%netscape.com" Date: Wed, 15 Aug 2001 04:20:31 +0000 Subject: [PATCH] bug 88454, r=mcafee, sr-sfraser add "fast-update" target which paralles "checkout" target --- client.mk | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/client.mk b/client.mk index b892e2398662..286be1013161 100644 --- a/client.mk +++ b/client.mk @@ -407,6 +407,32 @@ real_checkout: else true; \ fi +fast-update: +# @: Start the update. Split the output to the tty and a log file. \ +# : If it fails, touch an error file because "tee" hides the error. + @failed=.fast_update-failed.tmp; rm -f $$failed*; \ + fast_update() { (config/cvsco-fast-update.pl $$@ || touch $$failed) 2>&1 | tee -a $(CVSCO_LOGFILE) && \ + if test -f $$failed; then false; else true; fi; }; \ + fast_update $(CVSCO_NSPR) && \ + fast_update $(CVSCO_PSM) && \ + fast_update $(CVSCO_NSS) && \ + fast_update $(CVSCO_LDAPCSDK) && \ + fast_update $(CVSCO_ACCESSIBLE) && \ + fast_update $(CVSCO_GFX2) && \ + fast_update $(CVSCO_IMGLIB2) && \ + fast_update $(CVSCO_SEAMONKEY) && \ + fast_update $(CVSCO_NOSUBDIRS) + @echo "fast_update finish: "`date` | tee -a $(CVSCO_LOGFILE) +# @: Check the log for conflicts. ; + @conflicts=`egrep "^C " $(CVSCO_LOGFILE)` ;\ + if test "$$conflicts" ; then \ + echo "$(MAKE): *** Conflicts during fast-update." ;\ + echo "$$conflicts" ;\ + echo "$(MAKE): Refer to $(CVSCO_LOGFILE) for full log." ;\ + false; \ + else true; \ + fi + #################################### # Web configure