From 45d2895bfa87309c25f5d8baf28fe97c4621e3b8 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 16 Jun 1999 19:33:00 -0500 Subject: [svn-r1358] Update the ftp site to the AFS area. Added in the exit-on-error mode to abort cvs commit if errors encountered. --- bin/snapshot | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/snapshot b/bin/snapshot index 680a44e..ca18723 100755 --- a/bin/snapshot +++ b/bin/snapshot @@ -14,7 +14,7 @@ date PATH="/usr/local/bin:$PATH" # Where are the snapshots stored? -ARCHIVES=/hdf3/ftp/pub/outgoing/hdf5/snapshots +ARCHIVES=/afs/ncsa/ftp/HDF/pub/outgoing/hdf5/snapshots if [ "$1" ]; then ARCHIVES="$1" shift @@ -68,8 +68,11 @@ if [ "$snapshot" = "yes" ]; then fi # Release snapshot, update version, and commit to cvs and tag +# Turn on exit on error in the sub-shell so that it does not +# cvs commit if errors encounter here. if [ "$snapshot" = "yes" ]; then ( + set -e cd ${COMPARE}/current cvs -Q tag hdf5-`perl -w bin/h5vers |tr . _` bin/release -d $ARCHIVES $METHODS -- cgit v0.12