mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
[svn-r15440] Purpose: Correct a few typos from my previous edit
Description: -- Remove a couple lines of debugging output -- Make sure H5_PACKAGE_NAME outputs 'HDF5' rather than 'hdf5' -- Take into account version strings with a postfix. This isn't currently used in HDF5 1.9 branch, but is in HDF5 1.8. Tested: kagiso
This commit is contained in:
parent
2b3a491ee1
commit
35fcfd37d4
19
bin/h5vers
19
bin/h5vers
@ -363,24 +363,25 @@ sub gen_h5pubconf {
|
||||
if ($contents[$i] =~ /\#\s*define\s+H5_PACKAGE\s+/) {
|
||||
$contents[$i] = "\#define H5_PACKAGE \"$namelc\"\n";
|
||||
} elsif ($contents[$i] =~ /\#\s*define\s+H5_PACKAGE_NAME\s+/) {
|
||||
$contents[$i] = "\#define H5_PACKAGE_NAME \"$namelc\"\n";
|
||||
$contents[$i] = "\#define H5_PACKAGE_NAME \"$nameuc\"\n";
|
||||
} elsif ($contents[$i] =~ /\#\s*define\s+H5_PACKAGE_STRING\s+/) {
|
||||
$contents[$i] = sprintf("\#define H5_PACKAGE_STRING \"$nameuc %d.%d.%d\"\n",
|
||||
@vers[0,1,2]);
|
||||
$contents[$i] = sprintf("\#define H5_PACKAGE_STRING \"$nameuc %d.%d.%d%s\"\n",
|
||||
@vers[0,1,2],
|
||||
$newver[3] eq "" ? "" : "-".$newver[3]);
|
||||
} elsif ($contents[$i] =~ /\#\s*define\s+H5_PACKAGE_TARNAME\s+/) {
|
||||
$contents[$i] = "\#define H5_PACKAGE_TARNAME \"$namelc\"\n";
|
||||
} elsif ($contents[$i] =~ /\#\s*define\s+H5_PACKAGE_VERSION\s+/) {
|
||||
$contents[$i] = sprintf("\#define H5_PACKAGE_VERSION \"%d.%d.%d\"\n",
|
||||
@vers[0,1,2]);
|
||||
$contents[$i] = sprintf("\#define H5_PACKAGE_VERSION \"%d.%d.%d%s\"\n",
|
||||
@vers[0,1,2],
|
||||
$newver[3] eq "" ? "" : "-".$newver[3]);
|
||||
} elsif ($contents[$i] =~ /\#\s*define\s+H5_VERSION\s+/) {
|
||||
$contents[$i] = sprintf("\#define H5_VERSION \"%d.%d.%d\"\n",
|
||||
@vers[0,1,2]);
|
||||
$contents[$i] = sprintf("\#define H5_VERSION \"%d.%d.%d%s\"\n",
|
||||
@vers[0,1,2],
|
||||
$newver[3] eq "" ? "" : "-".$newver[3]);
|
||||
}
|
||||
}
|
||||
|
||||
printf("opening file for writing");
|
||||
open FILE, ">$pubconf" or die "$pubconf: $!\n";
|
||||
print FILE "this is a test";
|
||||
print FILE @contents;
|
||||
close FILE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user