summaryrefslogtreecommitdiffstats
path: root/bin/snapshot
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2002-03-06 00:55:31 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2002-03-06 00:55:31 (GMT)
commita3c023c1438e42b50acb176682a8ed1cd924e5c7 (patch)
tree62d66ddb884a94420ad7d776b83180b1a0162e99 /bin/snapshot
parente95f07dc6b1a58583a31bbf285dee16fe3cc4460 (diff)
downloadhdf5-a3c023c1438e42b50acb176682a8ed1cd924e5c7.zip
hdf5-a3c023c1438e42b50acb176682a8ed1cd924e5c7.tar.gz
hdf5-a3c023c1438e42b50acb176682a8ed1cd924e5c7.tar.bz2
[svn-r5034] Purpose:
New feature Description: Replacing the hardcoding of default version for snapshot test to a file, bin/snapshot_version. This way, runtest and snapshot can be version neutral. Makes maintenance easier. Platforms tested: eirene.
Diffstat (limited to 'bin/snapshot')
-rwxr-xr-xbin/snapshot7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/snapshot b/bin/snapshot
index c987682..a0b5fff 100755
--- a/bin/snapshot
+++ b/bin/snapshot
@@ -173,7 +173,12 @@ CONFIGURE="./configure $HDF4LIB $OP_CONFIGURE"
# Execute the requests
snapshot=yes
-H5VERSION=hdf5
+if [ -f bin/snapshot_version ]; then
+ . bin/snapshot_version
+else
+ H5VERSION=hdf5
+fi
+
BASEDIR=${HOME}/snapshots-${H5VERSION}
CURRENT=${BASEDIR}/current
PREVIOUS=${BASEDIR}/previous