diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2002-03-06 00:55:23 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2002-03-06 00:55:23 (GMT) |
commit | 06fd7bfdfeb949dd16703dc42d4685e2d4da7a09 (patch) | |
tree | e4187d7583a5bcd9400d09567c7a71c4491faa31 /bin/snapshot | |
parent | 10fb6c96662ae3202cfca212a7eb23992c74e42c (diff) | |
download | hdf5-06fd7bfdfeb949dd16703dc42d4685e2d4da7a09.zip hdf5-06fd7bfdfeb949dd16703dc42d4685e2d4da7a09.tar.gz hdf5-06fd7bfdfeb949dd16703dc42d4685e2d4da7a09.tar.bz2 |
[svn-r5033] 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 d85eb94..a0b5fff 100755 --- a/bin/snapshot +++ b/bin/snapshot @@ -173,7 +173,12 @@ CONFIGURE="./configure $HDF4LIB $OP_CONFIGURE" # Execute the requests snapshot=yes -H5VERSION=hdf5_1_4 +if [ -f bin/snapshot_version ]; then + . bin/snapshot_version +else + H5VERSION=hdf5 +fi + BASEDIR=${HOME}/snapshots-${H5VERSION} CURRENT=${BASEDIR}/current PREVIOUS=${BASEDIR}/previous |