diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2002-03-06 00:55:31 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2002-03-06 00:55:31 (GMT) |
commit | a3c023c1438e42b50acb176682a8ed1cd924e5c7 (patch) | |
tree | 62d66ddb884a94420ad7d776b83180b1a0162e99 /bin/snapshot | |
parent | e95f07dc6b1a58583a31bbf285dee16fe3cc4460 (diff) | |
download | hdf5-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-x | bin/snapshot | 7 |
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 |