diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2001-03-08 01:20:39 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2001-03-08 01:20:39 (GMT) |
commit | c5a940d13f695047a8ca471525310b1d4fa932c0 (patch) | |
tree | d7f01cb1990e3f548da3f974f3bcc3c6e116484f /bin | |
parent | 254d0a79b303fa894dca0cc76f8484132073f142 (diff) | |
download | hdf5-c5a940d13f695047a8ca471525310b1d4fa932c0.zip hdf5-c5a940d13f695047a8ca471525310b1d4fa932c0.tar.gz hdf5-c5a940d13f695047a8ca471525310b1d4fa932c0.tar.bz2 |
[svn-r3554] 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.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/snapshot | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/snapshot b/bin/snapshot index 8e8ecb6..6f01eed 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} -r ${H5VERSION} hdf5 || exit 1 + cvs -Q co -d ${CURRENT} ${CVSVERSION} hdf5 || exit 1 fi # Do CVS checkout |