summaryrefslogtreecommitdiffstats
path: root/bin/h5vers
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1998-07-30 19:48:20 (GMT)
committerRobb Matzke <matzke@llnl.gov>1998-07-30 19:48:20 (GMT)
commite4aae4fd9b335b2e4212270ea595731d43fa3df1 (patch)
tree16856e418ba3c09ab46d17efdd16211bdf265a9e /bin/h5vers
parentf21dbd337fcce7e0a97994b9f3cd689a15d1ddfe (diff)
downloadhdf5-e4aae4fd9b335b2e4212270ea595731d43fa3df1.zip
hdf5-e4aae4fd9b335b2e4212270ea595731d43fa3df1.tar.gz
hdf5-e4aae4fd9b335b2e4212270ea595731d43fa3df1.tar.bz2
[svn-r549] ./bin/h5vers
Fixed a bug that caused `h5vers -i' to fail with a usage message. The new behavior is the same as `h5vers -i release' which increments the release number. ./bin/snapshot A shell script intended to be run nightly from cron which compares the current version of hdf5 against the previous version. If there are differences it creates a tar file in an ftp directory, increments the hdf5 release number, and commits the changes back into the cvs repository. The name of the ftp directory in which to place the release can be given on the command line (default /hdf3/ftp/pub/outgoing/hdf5/snapshots). The CVSROOT environment variable must be set.
Diffstat (limited to 'bin/h5vers')
-rwxr-xr-xbin/h5vers7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/h5vers b/bin/h5vers
index a4ddefc..418c994 100755
--- a/bin/h5vers
+++ b/bin/h5vers
@@ -66,8 +66,11 @@ while ($_ = shift) {
};
$_ eq "-i" && do {
- die "-i switch needs a value\n" unless @ARGV;
- $inc = shift;
+ if (@ARGV && $ARGV[1]=~/^(major|minor|release)$/) {
+ $inc = shift;
+ } else {
+ $inc = "release";
+ }
next;
};