mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
[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:
This commit is contained in:
parent
6e2071f7ed
commit
6e9724c46c
11
bin/snapshot
11
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
|
||||
|
Loading…
Reference in New Issue
Block a user