summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1999-06-16 15:09:56 (GMT)
committerRobb Matzke <matzke@llnl.gov>1999-06-16 15:09:56 (GMT)
commit06c7d8fbbf7f5d1dedc2f0ea0cb75a37e5677527 (patch)
treeb5860bdfdf8d4f51c7a21fbc315dcfa9d3dd26aa /bin
parentb5690a0af32b3a15c00b4b904a6759710553be80 (diff)
downloadhdf5-06c7d8fbbf7f5d1dedc2f0ea0cb75a37e5677527.zip
hdf5-06c7d8fbbf7f5d1dedc2f0ea0cb75a37e5677527.tar.gz
hdf5-06c7d8fbbf7f5d1dedc2f0ea0cb75a37e5677527.tar.bz2
[svn-r1354]
Changes since 19990615 ---------------------- ./README Version number synchronized with library. ./bin/h5vers If the version number of the library is changed then the first line of the README file is also changed to something like This is hdf5-1.2.3 currently under development The `release' script (which also gets run by `snapshot') changes that line to include the release date but keeps the version number the same. The net effect is that the version numbers in README and H5public.h should now always stay synchronized. ./bin/snapshot The CVS checkin comment includes the version number for the snapshot that was just made. ./tools/testh5toh4 Changed `*-SKIP-*' to `-SKIP-' to be consistent with the other tests.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/h5vers25
-rwxr-xr-xbin/snapshot4
2 files changed, 27 insertions, 2 deletions
diff --git a/bin/h5vers b/bin/h5vers
index 6d30ffd..dac587d 100755
--- a/bin/h5vers
+++ b/bin/h5vers
@@ -36,6 +36,11 @@ require 5.003;
#
# If a file is specified then that file is used instead of
# ./H5public.h or ./src/H5public.h.
+#
+# If the version number is changed (either `-s' or `-i' was used on
+# the command line) then the first line of the README file one
+# directory above the H5public.h file is also modified so it looks
+# something like: This is hdf5-1.2.3 currently under development.
##############################################################################
sub getvers {
@@ -108,13 +113,17 @@ while ($_ = shift) {
}
die "mutually exclusive options given\n" if $set && $inc;
-# Determine file to use
+# Determine file to use as H5public.h and README. The README file is
+# always in the directory above H5public.h
unless ($file) {
for (@files) {
($file=$_,last) if -f $_;
}
}
die "unable to read file: $file\n" unless -r $file;
+$README = $file;
+$README =~ s/[^\/]*$/..\/README/;
+die "unable to read file: $README\n" unless -r $file;
# Get the current version number.
open FILE, $file or die "unable to open $file: $!\n";
@@ -148,6 +157,8 @@ if ($set) {
} elsif ($inc) {
die "unknown increment field: $inc\n";
} else {
+ # Nothing to do but print result
+ $README = "";
@newver = @curver;
}
@@ -169,6 +180,18 @@ if ($newver[0]!=$curver[0] ||
close FILE;
}
+# Update the README file
+if ($README) {
+ open FILE, $README or die "$README: $!\n";
+ @contents = <FILE>;
+ close FILE;
+ $contents[0] = sprintf("This is hdf5-%d.%d.%d currently under development\n",
+ @newver);
+ open FILE, ">$README" or die "$README: $!\n";
+ print FILE @contents;
+ close FILE;
+}
+
# Print the new version number
if ($verbose) {
printf "version %d.%d release %d\n", @newver;
diff --git a/bin/snapshot b/bin/snapshot
index 105f9d2..680a44e 100755
--- a/bin/snapshot
+++ b/bin/snapshot
@@ -47,6 +47,7 @@ if [ -d ${COMPARE}/previous ]; then
snapshot=no
for src in `grep '^\.' ${COMPARE}/current/MANIFEST|expand|cut -f1 -d' '`; do
diff -I H5_VERS_RELEASE -I " released on " \
+ -I " currently under development" \
${COMPARE}/previous/$src ${COMPARE}/current/$src || \
snapshot=yes
# Don't break because we want to see all the diffs.
@@ -72,8 +73,9 @@ if [ "$snapshot" = "yes" ]; then
cd ${COMPARE}/current
cvs -Q tag hdf5-`perl -w bin/h5vers |tr . _`
bin/release -d $ARCHIVES $METHODS
+ RELEASE_VERSION="`perl -w bin/h5vers -v`"
perl -w bin/h5vers -i
- cvs -Q commit -m Snapshot
+ cvs -Q commit -m "Snapshot $RELEASE_VERSION"
)
fi