mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-21 07:51:46 +08:00
Merge pull request #368 in HDFFV/hdf5 from ~LRKNOX/hdf5_lrk:hdf5_1_10 to hdf5_1_10
* commit '00a19eebf00f17736ca01d2375ebdb05e5f817d8': Update RELEASE.txt Remove "currently under development" from h5vers for HDF5Config.cmake that causes cmake not to find HDF5. Merge bin/h5vers changes from develop. Pull version from configure for version test in h5repack_plugin.sh.in Update version to 1.10.2-snap0 for hdf5_1_10 branch.
This commit is contained in:
commit
78f488b0b4
@ -1,4 +1,4 @@
|
||||
HDF5 version 1.10.1-pre0 currently under development
|
||||
HDF5 version 1.10.2-snap0 currently under development
|
||||
Please refer to the release_docs/INSTALL file for installation instructions.
|
||||
------------------------------------------------------------------------------
|
||||
|
||||
|
66
bin/h5vers
66
bin/h5vers
@ -196,6 +196,15 @@ die "unable to read file: $CONFIGURE\n" unless -r $file;
|
||||
my $CPP_DOC_CONFIG = $file;
|
||||
$CPP_DOC_CONFIG =~ s/[^\/]*$/..\/c++\/src\/cpp_doc_config/;
|
||||
die "unable to read file: $CPP_DOC_CONFIG\n" unless -r $file;
|
||||
my $H5_JAVA = $file;
|
||||
$H5_JAVA =~ s/[^\/]*$/..\/java\/src\/hdf\/hdf5lib\/H5.java/;
|
||||
die "unable to read file: $H5_JAVA\n" unless -r $file;
|
||||
my $TESTH5_JAVA = $file;
|
||||
$TESTH5_JAVA =~ s/[^\/]*$/..\/java\/test\/TestH5.java/;
|
||||
die "unable to read file: $TESTH5_JAVA\n" unless -r $file;
|
||||
my $REPACK_LAYOUT_PLUGIN_VERSION = $file;
|
||||
$REPACK_LAYOUT_PLUGIN_VERSION =~ s/[^\/]*$/..\/tools\/test\/h5repack\/testfiles\/h5repack_layout.h5-plugin_version_test.ddl/;
|
||||
die "unable to read file: $REPACK_LAYOUT_PLUGIN_VERSION\n" unless -r $file;
|
||||
|
||||
# Get the current version number.
|
||||
open FILE, $file or die "unable to open $file: $!\n";
|
||||
@ -347,19 +356,64 @@ if ($HDF5CONFIGCMAKE) {
|
||||
my $sub_rel_ver_str = (
|
||||
$newver[3] eq ""
|
||||
? sprintf("\"%s\"", "")
|
||||
: sprintf("\"%s\"", "-".$newver[3].", currently under development")
|
||||
: sprintf("\"%s\"", "-".$newver[3])
|
||||
);
|
||||
my $version_string = sprintf("\"%d.%d.%d\"", @newver[0,1,2]);
|
||||
|
||||
$data =~ s/set\(CTEST_SOURCE_VERSION .*\)/set\(CTEST_SOURCE_VERSION $version_string\)/;
|
||||
$data =~ s/set\(CTEST_SOURCE_VERSEXT .*\)/set\(CTEST_SOURCE_VERSEXT $sub_rel_ver_str\)/;
|
||||
$data =~ s/set \(CTEST_SOURCE_VERSION .*\)/set \(CTEST_SOURCE_VERSION $version_string\)/;
|
||||
$data =~ s/set \(CTEST_SOURCE_VERSEXT .*\)/set \(CTEST_SOURCE_VERSEXT $sub_rel_ver_str\)/;
|
||||
|
||||
write_file($HDF5CONFIGCMAKE, $data);
|
||||
}
|
||||
|
||||
# Update the java/src/hdf/hdf5lib/H5.java file
|
||||
if ($H5_JAVA) {
|
||||
my $data = read_file($H5_JAVA);
|
||||
# my $sub_rel_ver_str = "";
|
||||
my $sub_rel_ver_str = (
|
||||
$newver[3] eq ""
|
||||
? sprintf("\"%s\"", "")
|
||||
: sprintf("\"%s\"", "-".$newver[3].", currently under development")
|
||||
);
|
||||
my $version_string1 = sprintf("%d.%d.%d", @newver[0,1,2]);
|
||||
my $version_string2 = sprintf("%d, %d, %d", @newver[0,1,2]);
|
||||
|
||||
$data =~ s/\@version HDF5 .* <BR>/\@version HDF5 $version_string1 <BR>/;
|
||||
$data =~ s/ public final static int LIB_VERSION\[\] = { \d*, \d*, \d* };/ public final static int LIB_VERSION[] = { $version_string2 };/;
|
||||
|
||||
# helper function to read the file for updating c++/src/cpp_doc_config file.
|
||||
write_file($H5_JAVA, $data);
|
||||
}
|
||||
|
||||
# Update the java/test/TestH5.java file
|
||||
if ($TESTH5_JAVA) {
|
||||
my $data = read_file($TESTH5_JAVA);
|
||||
# my $sub_rel_ver_str = "";
|
||||
my $sub_rel_ver_str = (
|
||||
$newver[3] eq ""
|
||||
? sprintf("\"%s\"", "")
|
||||
: sprintf("\"%s\"", "-".$newver[3].", currently under development")
|
||||
);
|
||||
my $version_string1 = sprintf("%d, %d, %d", @newver[0,1,2]);
|
||||
my $version_string2 = sprintf("int majnum = %d, minnum = %d, relnum = %d", @newver[0,1,2]);
|
||||
|
||||
$data =~ s/ int libversion\[\] = { .* };/ int libversion\[\] = { $version_string1 };/;
|
||||
$data =~ s/ int majnum = \d*, minnum = \d*, relnum = \d*;/ $version_string2;/;
|
||||
|
||||
write_file($TESTH5_JAVA, $data);
|
||||
}
|
||||
|
||||
# Update the tools/test/h5repack/testfiles/h5repack_layout.h5-plugin_version_test.ddl file
|
||||
if ($REPACK_LAYOUT_PLUGIN_VERSION) {
|
||||
my $data = read_file($REPACK_LAYOUT_PLUGIN_VERSION);
|
||||
my $version_string = sprintf("%d %d %d", @newver[0,1,2]);
|
||||
|
||||
$data =~ s/ PARAMS { 9 \d* \d* \d* }/ PARAMS { 9 $version_string }/g;
|
||||
|
||||
write_file($REPACK_LAYOUT_PLUGIN_VERSION, $data);
|
||||
}
|
||||
|
||||
# helper function to read the file for updating c++/src/cpp_doc_config,
|
||||
# config/cmake/scripts/HDF5Config.cmake, and java files.
|
||||
# The version string in that file is not at the top, so the string replacement
|
||||
# is not for the first line, and reading/writing the entire file as one string
|
||||
# facilitates the substring replacement.
|
||||
@ -375,8 +429,8 @@ sub read_file {
|
||||
return $all;
|
||||
}
|
||||
|
||||
# helper function to write the file for updating c++/src/cpp_doc_config
|
||||
# and config/cmake/scripts/HDF5config.cmake files.
|
||||
# helper function to write the file for updating c++/src/cpp_doc_config,
|
||||
# config/cmake/scripts/HDF5config.cmake and java files.
|
||||
sub write_file {
|
||||
my ($filename, $content) = @_;
|
||||
|
||||
|
@ -38,7 +38,7 @@ PROJECT_NAME = "HDF5 C++ API"
|
||||
# could be handy for archiving the generated documentation or if some version
|
||||
# control system is used.
|
||||
|
||||
PROJECT_NUMBER = "1.10.1-pre0, currently under development"
|
||||
PROJECT_NUMBER = "1.10.2-snap0, currently under development"
|
||||
|
||||
# Using the PROJECT_BRIEF tag one can provide an optional one line description
|
||||
# for a project that appears at the top of each page and should give viewer a
|
||||
|
@ -27,8 +27,8 @@ cmake_minimum_required (VERSION 3.2.2 FATAL_ERROR)
|
||||
# NO_MAC_FORTRAN - Yes to be SHARED on a Mac
|
||||
##############################################################################
|
||||
|
||||
set (CTEST_SOURCE_VERSION 1.10.1)
|
||||
set (CTEST_SOURCE_VERSEXT "-pre0")
|
||||
set (CTEST_SOURCE_VERSION "1.10.2")
|
||||
set (CTEST_SOURCE_VERSEXT "-snap0, currently under development")
|
||||
|
||||
##############################################################################
|
||||
# handle input parameters to script.
|
||||
|
@ -26,7 +26,7 @@ AC_PREREQ([2.69])
|
||||
## NOTE: Do not forget to change the version number here when we do a
|
||||
## release!!!
|
||||
##
|
||||
AC_INIT([HDF5], [1.10.1-pre0], [help@hdfgroup.org])
|
||||
AC_INIT([HDF5], [1.10.2-snap0], [help@hdfgroup.org])
|
||||
|
||||
AC_CONFIG_SRCDIR([src/H5.c])
|
||||
AC_CONFIG_HEADERS([src/H5config.h])
|
||||
|
@ -216,7 +216,7 @@ import hdf.hdf5lib.structs.H5O_info_t;
|
||||
* exception handlers to print out the HDF-5 error stack.
|
||||
* <hr>
|
||||
*
|
||||
* @version HDF5 1.10.1-pre0 <BR>
|
||||
* @version HDF5 1.10.2 <BR>
|
||||
* <b>See also: <a href ="./hdf.hdf5lib.HDFArray.html"> hdf.hdf5lib.HDFArray</a> </b><BR>
|
||||
* <a href ="./hdf.hdf5lib.HDF5Constants.html"> hdf.hdf5lib.HDF5Constants</a><BR>
|
||||
* <a href ="./hdf.hdf5lib.HDF5CDataTypes.html"> hdf.hdf5lib.HDF5CDataTypes</a><BR>
|
||||
@ -239,7 +239,7 @@ public class H5 implements java.io.Serializable {
|
||||
*
|
||||
* Make sure to update the versions number when a different library is used.
|
||||
*/
|
||||
public final static int LIB_VERSION[] = { 1, 10, 1 };
|
||||
public final static int LIB_VERSION[] = { 1, 10, 2 };
|
||||
|
||||
public final static String H5PATH_PROPERTY_KEY = "hdf.hdf5lib.H5.hdf5lib";
|
||||
|
||||
|
@ -164,7 +164,7 @@ public class TestH5 {
|
||||
*/
|
||||
@Test
|
||||
public void testH5get_libversion() {
|
||||
int libversion[] = { 1, 10, 1 };
|
||||
int libversion[] = { 1, 10, 2 };
|
||||
|
||||
try {
|
||||
H5.H5get_libversion(libversion);
|
||||
@ -186,7 +186,7 @@ public class TestH5 {
|
||||
*/
|
||||
@Test
|
||||
public void testH5check_version() {
|
||||
int majnum = 1, minnum = 10, relnum = 1;
|
||||
int majnum = 1, minnum = 10, relnum = 2;
|
||||
|
||||
try {
|
||||
H5.H5check_version(majnum, minnum, relnum);
|
||||
|
@ -1,4 +1,4 @@
|
||||
HDF5 version 1.10.1-pre0 currently under development
|
||||
HDF5 version 1.10.2-snap0 currently under development
|
||||
================================================================================
|
||||
|
||||
|
||||
|
@ -94,10 +94,10 @@ extern "C" {
|
||||
/* Version numbers */
|
||||
#define H5_VERS_MAJOR 1 /* For major interface/format changes */
|
||||
#define H5_VERS_MINOR 10 /* For minor interface/format changes */
|
||||
#define H5_VERS_RELEASE 1 /* For tweaks, bug-fixes, or development */
|
||||
#define H5_VERS_SUBRELEASE "pre0" /* For pre-releases like snap0 */
|
||||
#define H5_VERS_RELEASE 2 /* For tweaks, bug-fixes, or development */
|
||||
#define H5_VERS_SUBRELEASE "snap0" /* For pre-releases like snap0 */
|
||||
/* Empty string for real releases. */
|
||||
#define H5_VERS_INFO "HDF5 library version: 1.10.1-pre0" /* Full version string */
|
||||
#define H5_VERS_INFO "HDF5 library version: 1.10.2-snap0" /* Full version string */
|
||||
|
||||
#define H5check() H5check_version(H5_VERS_MAJOR,H5_VERS_MINOR, \
|
||||
H5_VERS_RELEASE)
|
||||
|
@ -246,9 +246,10 @@ TOOLTEST_DUMP()
|
||||
##############################################################################
|
||||
# prepare for test
|
||||
COPY_TESTFILES_TO_TESTDIR
|
||||
version_str=`echo @H5_VERSION@ | awk -F"-" '{print $1}' | sed 's/\./,/g'`
|
||||
|
||||
# Run the test
|
||||
arg="h5repack_layout.h5 -v -f UD=260,4,9,1,10,1"
|
||||
arg="h5repack_layout.h5 -v -f UD=260,4,9,$version_str"
|
||||
TOOLTEST_DUMP plugin_version_test $arg
|
||||
|
||||
arg="h5repack_layout.h5 -v -f UD=257,1,9"
|
||||
|
@ -11,7 +11,7 @@ GROUP "/" {
|
||||
USER_DEFINED_FILTER {
|
||||
FILTER_ID 260
|
||||
COMMENT dynlib4
|
||||
PARAMS { 9 1 10 1 }
|
||||
PARAMS { 9 1 10 2 }
|
||||
}
|
||||
}
|
||||
FILLVALUE {
|
||||
@ -33,7 +33,7 @@ GROUP "/" {
|
||||
USER_DEFINED_FILTER {
|
||||
FILTER_ID 260
|
||||
COMMENT dynlib4
|
||||
PARAMS { 9 1 10 1 }
|
||||
PARAMS { 9 1 10 2 }
|
||||
}
|
||||
}
|
||||
FILLVALUE {
|
||||
@ -55,7 +55,7 @@ GROUP "/" {
|
||||
USER_DEFINED_FILTER {
|
||||
FILTER_ID 260
|
||||
COMMENT dynlib4
|
||||
PARAMS { 9 1 10 1 }
|
||||
PARAMS { 9 1 10 2 }
|
||||
}
|
||||
}
|
||||
FILLVALUE {
|
||||
@ -77,7 +77,7 @@ GROUP "/" {
|
||||
USER_DEFINED_FILTER {
|
||||
FILTER_ID 260
|
||||
COMMENT dynlib4
|
||||
PARAMS { 9 1 10 1 }
|
||||
PARAMS { 9 1 10 2 }
|
||||
}
|
||||
}
|
||||
FILLVALUE {
|
||||
@ -99,7 +99,7 @@ GROUP "/" {
|
||||
USER_DEFINED_FILTER {
|
||||
FILTER_ID 260
|
||||
COMMENT dynlib4
|
||||
PARAMS { 9 1 10 1 }
|
||||
PARAMS { 9 1 10 2 }
|
||||
}
|
||||
}
|
||||
FILLVALUE {
|
||||
@ -121,7 +121,7 @@ GROUP "/" {
|
||||
USER_DEFINED_FILTER {
|
||||
FILTER_ID 260
|
||||
COMMENT dynlib4
|
||||
PARAMS { 9 1 10 1 }
|
||||
PARAMS { 9 1 10 2 }
|
||||
}
|
||||
}
|
||||
FILLVALUE {
|
||||
@ -143,7 +143,7 @@ GROUP "/" {
|
||||
USER_DEFINED_FILTER {
|
||||
FILTER_ID 260
|
||||
COMMENT dynlib4
|
||||
PARAMS { 9 1 10 1 }
|
||||
PARAMS { 9 1 10 2 }
|
||||
}
|
||||
}
|
||||
FILLVALUE {
|
||||
|
Loading…
Reference in New Issue
Block a user