summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/snapshot12
1 files changed, 8 insertions, 4 deletions
diff --git a/bin/snapshot b/bin/snapshot
index 1e86aff..477299d 100755
--- a/bin/snapshot
+++ b/bin/snapshot
@@ -117,6 +117,7 @@ snapshot=yes
# set
# exit 0
+COMPARE=${HOME}/hdf5-snapshots
#=============================
# Run CVS checkout
@@ -125,7 +126,6 @@ if [ "$cmd" = "all" -o -n "$cmdcheckout" ]; then
# 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.
- COMPARE=${HOME}/hdf5-snapshots
test -d ${COMPARE} || mkdir -p ${COMPARE} || exit 1
# Check out the current version from CVS
@@ -176,10 +176,14 @@ if [ "$cmd" = "all" -o -n "$cmdrel" ]; then
# cvs commit if errors encounter here.
set -e
cd ${COMPARE}/current
- cvs -Q tag hdf5-`perl -w bin/h5vers |tr . _`
+# "perl -w ..." doesn't appear to be working on baldric..
+# cvs -Q tag hdf5-`perl -w bin/h5vers |tr . _`
+ cvs -Q tag hdf5-`perl bin/h5vers |tr . _`
bin/release -d $ARCHIVES $METHODS
- RELEASE_VERSION="`perl -w bin/h5vers -v`"
- perl -w bin/h5vers -i
+# RELEASE_VERSION="`perl -w bin/h5vers -v`"
+ RELEASE_VERSION="`perl bin/h5vers -v`"
+# perl -w bin/h5vers -i
+ perl bin/h5vers -i
cvs -Q commit -m "Snapshot $RELEASE_VERSION"
)
fi