From 790a4a7bad1f996303a2679a1ce62f3df4ff2098 Mon Sep 17 00:00:00 2001 From: "slamm%netscape.com" Date: Mon, 18 Oct 1999 22:33:32 +0000 Subject: [PATCH] Update checkout target. Add logging. Stop on conflicts. r=dougt --- client.mak | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/client.mak b/client.mak index e5099c576aa4..cc0f03423946 100644 --- a/client.mak +++ b/client.mak @@ -72,11 +72,8 @@ CVSCO_LIBPREF = $(CVSCO) -A CVSCO_PLUGIN = $(CVSCO) -A !endif -CVSCO_XPCOM = $(CVSCO) -CVSCO_IMGLIB = $(CVSCO) -CVSCO_RAPTOR = $(CVSCO) -CVSCO_LIZARD = $(CVSCO) -CVSCO_NETWORK = $(CVSCO) +CVSCO_LAYOUT = $(CVSCO) RaptorWin +CVSCO_SEAMONKEY = $(CVSCO) SeaMonkeyAll ## The master target ############################################################ @@ -93,12 +90,29 @@ pull_all: pull_seamonkey # pull either layout only or seamonkey the browser pull_layout: - cd $(MOZ_SRC)\. - $(CVSCO) RaptorWin + cd .. + $(CVSCO_LAYOUT) pull_seamonkey: - cd $(MOZ_SRC)\. - $(CVSCO) SeaMonkeyAll + cd .. + if exist cvslog.txt rm cvslog-old.txt && ren cvslog.txt cvslog-old.txt + @perl << + sub dblprint { print LOG @_; print STDERR @_; } + open LOG, ">cvslog.txt"; + open CVS, '$(CVSCO_SEAMONKEY)|'; + dblprint 'checkout start: ', `date`; + dblprint '$(CVSCO_SEAMONKEY) | tee cvslog.txt'."\n"; + while () { + dblprint $$_; + push @conflicts, $$_ if /^C /; + } + if (@conflicts) { + print "Error: cvs conflicts during checkout:\n"; + die join('', @conflicts); + } + close(CVS) or die "cvs error.\n"; + dblprint 'checkout finish: ', `date`; +<< ############################################################