diff options
author | HDF Admin <hdfadmin@ncsa.uiuc.edu> | 2003-07-07 17:03:08 (GMT) |
---|---|---|
committer | HDF Admin <hdfadmin@ncsa.uiuc.edu> | 2003-07-07 17:03:08 (GMT) |
commit | 540431b983b03ad4d1c9dadd86938ebbfe6d3a87 (patch) | |
tree | d4ac0c5f61a27d632061ffa164c8a771828050e0 /bin/snapshot | |
parent | 949f595f10e541e2bef1bf419ca92ad4975df50e (diff) | |
download | hdf5-540431b983b03ad4d1c9dadd86938ebbfe6d3a87.zip hdf5-540431b983b03ad4d1c9dadd86938ebbfe6d3a87.tar.gz hdf5-540431b983b03ad4d1c9dadd86938ebbfe6d3a87.tar.bz2 |
[svn-r7179] Purpose:
Bug fix
Description:
If the base directory (.../snapshot-...) does not exist yet,
the runtest and snapshot will continue on till it bumped into
a "wall".
Solution:
Added verification that the BASEDIR does exist.
Diffstat (limited to 'bin/snapshot')
-rwxr-xr-x | bin/snapshot | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/snapshot b/bin/snapshot index c8f4f1a..b9ee743 100755 --- a/bin/snapshot +++ b/bin/snapshot @@ -217,6 +217,11 @@ else fi BASEDIR=${HOME}/snapshots-${H5VERSION} +if [ ! -d ${BASEDIR} ]; then + echo "BASEDIR ($BASEDIR) does not exist" + exit 1 +fi + CURRENT=${BASEDIR}/current PREVIOUS=${BASEDIR}/previous HOSTNAME=`hostname | cut -f1 -d.` # no domain part @@ -238,11 +243,6 @@ done #============================= if [ "$cmd" = "all" -o -n "$cmdcheckout" ]; then TIMESTAMP "checkout" - # Create a working directory. Hopefully one is left over from last - # time that still has the contents of the previous release. But if - # not, just create one and assume that a snapshot is necessary. - test -d ${BASEDIR} || mkdir -p ${BASEDIR} || exit 1 - # If there is a Makefile in ${CURRENT}, the last test done in it # has not been distclean'ed. They would interfere with other # --srcdir build since make considers the files in ${CURRENT} |