summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorBill Wendling <wendling@ncsa.uiuc.edu>2002-04-29 17:24:50 (GMT)
committerBill Wendling <wendling@ncsa.uiuc.edu>2002-04-29 17:24:50 (GMT)
commit7065ac798266292941f99df56a6dbede7877689c (patch)
tree604f9195227f0e1059981b16ae02b01a9eb15ae1 /bin
parent73683e4380583563699330b8e32b1a34a476447a (diff)
downloadhdf5-7065ac798266292941f99df56a6dbede7877689c.zip
hdf5-7065ac798266292941f99df56a6dbede7877689c.tar.gz
hdf5-7065ac798266292941f99df56a6dbede7877689c.tar.bz2
[svn-r5280] Purpose:
Update Description: Changed so that the Fortran and C++ configures are named "HDF5 Fortran" and "HDF5 C++" resp. instead of just "HDF5. Solution: Add an extra parameter to the subroutine which generates the new configure.in files. Platforms tested: Linux
Diffstat (limited to 'bin')
-rwxr-xr-xbin/h5vers10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/h5vers b/bin/h5vers
index 6b1ac5f..94111c2 100755
--- a/bin/h5vers
+++ b/bin/h5vers
@@ -269,7 +269,7 @@ if ($RELEASE) {
}
sub gen_configure {
- my ($conf) = @_;
+ my ($name, $conf) = @_;
open FILE, $conf or die "$conf: $!\n";
my @contents = <FILE>;
@@ -277,7 +277,7 @@ sub gen_configure {
for (my $i = 0; $i < $#contents; ++$i) {
if ($contents[$i] =~ /^AC_INIT/) {
- $contents[$i] = sprintf("AC_INIT([HDF5], [%d.%d.%d%s], [hdfhelp\@ncsa.uiuc.edu])\n",
+ $contents[$i] = sprintf("AC_INIT([$name], [%d.%d.%d%s], [hdfhelp\@ncsa.uiuc.edu])\n",
@newver[0,1,2],
$newver[3] eq "" ? "" : "-".$newver[3]);
last;
@@ -298,9 +298,9 @@ sub gen_configure {
}
# Update the configure.in files and regenerate them
-gen_configure $CONFIGURE if $CONFIGURE;
-gen_configure $FORTRAN_CONFIGURE if $FORTRAN_CONFIGURE;
-gen_configure $CXX_CONFIGURE if $CXX_CONFIGURE;
+gen_configure("HDF5", $CONFIGURE) if $CONFIGURE;
+gen_configure("HDF5 Fortran", $FORTRAN_CONFIGURE) if $FORTRAN_CONFIGURE;
+gen_configure("HDF5 C++", $CXX_CONFIGURE) if $CXX_CONFIGURE;
# Print the new version number
if ($verbose) {