diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2001-07-06 05:43:38 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2001-07-06 05:43:38 (GMT) |
commit | 708ee4922c623d170969862221742ae56ca36f44 (patch) | |
tree | 0520f44afce07fec2fc41685d7659d7e5ee754b0 /bin/h5vers | |
parent | 5308ccd9de5b10c803dee312cc60076704cbbf46 (diff) | |
download | hdf5-708ee4922c623d170969862221742ae56ca36f44.zip hdf5-708ee4922c623d170969862221742ae56ca36f44.tar.gz hdf5-708ee4922c623d170969862221742ae56ca36f44.tar.bz2 |
[svn-r4129] Purpose:
update
Description:
Several files have been renamed or moved to a different location.
README => README.txt
RELEASE.txt => release_docs/RELEASE.txt
HISTORY.txt => release_docs/HISTORY.txt
Updated h5vers and release to reflect all these new names/locations.
Also made all uses the same beginning phases for the first line
of text in README.txt and RELEASE.txt as follows:
"HDF5 version ... "
Platforms tested:
eirene by running the bin/release and bin/h5vers -i.
Diffstat (limited to 'bin/h5vers')
-rwxr-xr-x | bin/h5vers | 23 |
1 files changed, 12 insertions, 11 deletions
@@ -56,7 +56,7 @@ use strict; # ./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 and RELEASE.txt files +# the command line) then the first line of the README.txt and RELEASE.txt files # one directory above the H5public.h file is also modified so it looks # something like: This is hdf5-1.2.3-pre1 currently under development. ############################################################################## @@ -136,8 +136,9 @@ while ($_ = shift) { } die "mutually exclusive options given\n" if $set && $inc; -# Determine file to use as H5public.h, README and RELEASE.txt. -# The README and RELEASE.txt files are always in the directory above H5public.h +# Determine file to use as H5public.h, README.txt and release_docs/RELEASE.txt. +# The README.txt and release_docs/RELEASE.txt files are always in the +# directory above H5public.h unless ($file) { for (@files) { ($file=$_,last) if -f $_; @@ -145,13 +146,13 @@ unless ($file) { } die "unable to find source files\n" unless defined $file; die "unable to read file: $file\n" unless -r $file; -# README +# README.txt my $README = $file; -$README =~ s/[^\/]*$/..\/README/; +$README =~ s/[^\/]*$/..\/README.txt/; die "unable to read file: $README\n" unless -r $file; -# RELEASE.txt +# release_docs/RELEASE.txt my $RELEASE = $file; -$RELEASE =~ s/[^\/]*$/..\/RELEASE.txt/; +$RELEASE =~ s/[^\/]*$/..\/release_docs\/RELEASE.txt/; die "unable to read file: $RELEASE\n" unless -r $file; # Get the current version number. @@ -221,12 +222,12 @@ if ($newver[0]!=$curver[0] || close FILE; } -# Update the README file +# Update the README.txt file if ($README) { open FILE, $README or die "$README: $!\n"; my @contents = <FILE>; close FILE; - $contents[0] = sprintf("This is hdf5-%d.%d.%d%s %s", + $contents[0] = sprintf("HDF5 version %d.%d.%d%s %s", @newver[0,1,2], $newver[3] eq "" ? "" : "-".$newver[3], "currently under development\n"); @@ -235,12 +236,12 @@ if ($README) { close FILE; } -# Update the RELEASE.txt file +# Update the release_docs/RELEASE.txt file if ($RELEASE) { open FILE, $RELEASE or die "$RELEASE: $!\n"; my @contents = <FILE>; close FILE; - $contents[0] = sprintf("HDF5 library version %d.%d.%d%s %s", + $contents[0] = sprintf("HDF5 version %d.%d.%d%s %s", @newver[0,1,2], $newver[3] eq "" ? "" : "-".$newver[3], "currently under development\n"); |