From 6e9724c46c38649b2ddc95a878e872a3c3eb5972 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 2 Apr 2003 16:35:57 -0500 Subject: [PATCH] [svn-r6572] Purpose: bug fix. Description: It checked on the CVSROOT setting even when no cvs is needed. Solution: Moved the verification inside the checkout code so that the CVS settings are checked when it is needed. Platforms tested: Eirene--this is invoked by bin/runtest. Platform tests do not apply here. Misc. update: --- bin/snapshot | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/bin/snapshot b/bin/snapshot index c47e27fc23..c8f4f1a846 100755 --- a/bin/snapshot +++ b/bin/snapshot @@ -64,12 +64,6 @@ METHODS="gzip bzip2" # Use User's MAKE if set. Else use generic make. MAKE=${MAKE:-make} -# Make sure cvs would work -if [ -z "$CVSROOT" ]; then - echo "Where is the CVS repository?" 1>&2 - exit 1 -fi - # # Command options cmd="all" @@ -259,6 +253,11 @@ if [ "$cmd" = "all" -o -n "$cmdcheckout" ]; then # regardless of the return code of distclean. ( cd ${CURRENT}; test -f Makefile && ${MAKE} distclean) + # verify proper cvs setting + if [ -z "$CVSROOT" ]; then + echo "CVSROOT not defined!" 1>&2 + exit 1 + fi # Check out the current version from CVS cvs -Q co -d ${CURRENT} ${CVSVERSION} hdf5 || exit 1 fi # Do CVS checkout