Use config/cvsco.pl to checkout.

Catches conflicts and logs output to a file. r=mcafee
This commit is contained in:
slamm%netscape.com 1999-11-30 00:52:20 +00:00
Родитель 6197c55530
Коммит 7c01b0bfec
2 изменённых файлов: 16 добавлений и 43 удалений

Просмотреть файл

@ -80,12 +80,6 @@ CVSCO_LIBPREF = $(CVSCO) -A
CVSCO_PLUGIN = $(CVSCO) -A
!endif
CVSCO_XPCOM = $(CVSCO)
CVSCO_IMGLIB = $(CVSCO)
CVSCO_RAPTOR = $(CVSCO)
CVSCO_LIZARD = $(CVSCO)
CVSCO_NETWORK = $(CVSCO)
## The master target
############################################################
@ -104,9 +98,16 @@ pull_layout:
cd $(MOZ_SRC)\.
$(CVSCO) RaptorWin
####################################
# CVS checkout Seamonkey
# (cvsco.pl checks for conflicts during the checkout.
# cvsco.pl also logs the checkout to a file, cvslog.txt.)
pull_seamonkey:
cd $(MOZ_SRC)\.
$(CVSCO) SeaMonkeyAll
!if !exist($(MOZ_SRC)\mozilla\config\cvsco.pl)
$(CVSCO) mozilla\config\cvsco.pl
!endif
@perl mozilla\config\cvsco.pl $(CVSCO) SeaMonkeyAll
############################################################

Просмотреть файл

@ -97,8 +97,9 @@ MOZCONFIG2DEFS := mozilla/build/autoconf/mozconfig2defs.sh
run_for_side_effects := \
$(shell cd $(ROOTDIR); \
if test "$(_IS_FIRST_CHECKOUT)"; then \
$(CVSCO) mozilla/build/autoconf/find-mozconfig.sh; \
$(CVSCO) $(MOZCONFIG2DEFS); \
$(CVSCO) mozilla/build/autoconf/find-mozconfig.sh \
$(MOZCONFIG2DEFS) \
mozilla/config/cvsco.pl; \
else true; \
fi; \
$(MOZCONFIG2DEFS) mozilla/.client-defs.mk)
@ -162,41 +163,12 @@ everything: checkout clobber_all build
####################################
# CVS checkout
#
# (cvsco.pl checks for conflicts during the checkout.
# cvsco.pl also logs the checkout to a file, cvslog.txt.)
checkout:
@: Backup the last checkout log. \
; \
if test -f $(CVSCO_LOGFILE) ; then \
mv $(CVSCO_LOGFILE) $(CVSCO_LOGFILE).old; \
else true; \
fi
@: Start the checkout. Pipe the output to the tty and a log file. \
: If it fails, touch an error file because the pipe hides the \
: error. If the file is created, remove it and return an error. \
; \
echo "checkout start: "`date` | tee $(CVSCO_LOGFILE); \
echo "cd $(ROOTDIR); $(CVSCO) $(MOZ_CO_MODULE)"; \
cd $(ROOTDIR); \
rm -f cvs-failed.tmp*; \
( $(CVSCO) $(MOZ_CO_MODULE) || touch cvs-failed.tmp ) 2>&1 \
| tee -a $(CVSCO_LOGFILE); \
if test -f cvs-failed.tmp ; then \
rm cvs-failed.tmp; \
false; \
else true; \
fi
@echo "checkout finish: "`date` | tee -a $(CVSCO_LOGFILE); \
: \
: Check the log for conflicts. \
; \
conflicts=`egrep "^C " $(CVSCO_LOGFILE)` ;\
if test "$$conflicts" ; then \
echo "$(MAKE): *** Conflicts during checkout." ;\
echo "$$conflicts" ;\
echo "$(MAKE): Refer to $(CVSCO_LOGFILE) for full log." ;\
false; \
else true; \
fi
@echo cd $(ROOTDIR)
@cd $(ROOTDIR); \
$(PERL) mozilla/config/cvsco.pl $(CVSCO) $(MOZ_CO_MODULE)
####################################
# Web configure