From 343d05a8f91c7604c4aa12ac666441680667b771 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 7 Mar 2001 20:20:43 -0500 Subject: [svn-r3555] Purpose: Code improvement Description: Changed it so that $H5VERSION determines which version of hdf5 code to do cvs checkout and to test, making it easier to handle new versions. Platforms tested: run simple test to make sure it did generate the right command. --- bin/snapshot | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/snapshot b/bin/snapshot index f3f05b0..dcb77e0 100755 --- a/bin/snapshot +++ b/bin/snapshot @@ -171,6 +171,11 @@ BASEDIR=${HOME}/snapshots-${H5VERSION} CURRENT=${BASEDIR}/current PREVIOUS=${BASEDIR}/previous HOSTNAME=`hostname | cut -f1 -d.` # no domain part +if [ $H5VERSION != hdf5 ]; then + CVSVERSION="-r $H5VERSION" +else + CVSVERSION= # use the default (main) version +fi # Try finding a version of diff that supports the -I option too. DIFF=diff @@ -189,7 +194,7 @@ if [ "$cmd" = "all" -o -n "$cmdcheckout" ]; then test -d ${BASEDIR} || mkdir -p ${BASEDIR} || exit 1 # Check out the current version from CVS - cvs -Q co -d ${CURRENT} hdf5 || exit 1 + cvs -Q co -d ${CURRENT} ${CVSVERSION} hdf5 || exit 1 fi # Do CVS checkout -- cgit v0.12