mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
9754e9373b
---------------------- ./doc/html/Datatypes.html ./doc/html/H5.format.html ./src/H5.c ./src/H5Odtype.c ./src/H5T.c ./src/H5Tconv.c ./src/H5Tpkg.h ./src/H5Tpublic.h ./test/dtypes.c Changed the values of the H5T_str_t type in order to make a distinction between C's null terminated strings and strings which are not null terminated. The string character set and padding method are saved to the hdf5 file instead of using defaults. Added conversion function from one fixed-length string type to another. ./test/chunk.c Fixed to work with new filter API
79 lines
1.9 KiB
Bash
Executable File
79 lines
1.9 KiB
Bash
Executable File
#!/bin/sh
|
|
set -x
|
|
date
|
|
#
|
|
# This script should be run nightly from cron. It checks out hdf5
|
|
# from the CVS source tree and compares it against the previous
|
|
# snapshot. If anything significant changed then a new snapshot is
|
|
# created, the minor version number is incremented, and the change is
|
|
# checked back into the CVS repository.
|
|
#
|
|
|
|
# Where are the snapshots stored?
|
|
ARCHIVES=/hdf3/ftp/pub/outgoing/hdf5/snapshots
|
|
if [ "$1" ]; then
|
|
ARCHIVES="$1"
|
|
shift
|
|
fi
|
|
|
|
# What compression methods to use?
|
|
METHODS="gzip bzip2"
|
|
|
|
# Create a working directory. Hopefully one is left over from last
|
|
# time that still has the contents of the previous release. But if
|
|
# not, just create one and assume that a snapshot is necessary.
|
|
COMPARE=${HOME}/hdf5-snapshots
|
|
test -d ${COMPARE} || mkdir -p ${COMPARE} || exit 1
|
|
|
|
# Check out the current version from CVS
|
|
if [ -z "$CVSROOT" ]; then
|
|
echo "Where is the CVS repository?" 1>&2
|
|
exit 1
|
|
fi
|
|
cvs -Q co -d ${COMPARE}/current hdf5 || exit 1
|
|
|
|
# Compare it with the previous version. Compare only files listed in
|
|
# the MANIFEST plus the MANIFEST itself.
|
|
if [ -d ${COMPARE}/previous ]; then
|
|
if (diff ${COMPARE}/{previous,current}/MANIFEST); then
|
|
for src in `cat ${COMPARE}/current/MANIFEST`; do
|
|
if (diff -I H5_VERS_RELEASE -I " released on " \
|
|
${COMPARE}/{previous,current}/$src); then
|
|
snapshot=no
|
|
else
|
|
snapshot=yes
|
|
break
|
|
fi
|
|
done
|
|
else
|
|
snapshot=yes
|
|
fi
|
|
else
|
|
snapshot=yes
|
|
fi
|
|
|
|
# Make sure all the serial tests work.
|
|
if [ "$snapshot" = "yes" ]; then
|
|
if (cd ${COMPARE}/current; make _test); then
|
|
:
|
|
else
|
|
snapshot=no
|
|
fi
|
|
(cd ${COMPARE}/current; make distclean)
|
|
fi
|
|
|
|
# Release snapshot, update version, and commit to cvs
|
|
if [ "$snapshot" = "yes" ]; then
|
|
(
|
|
cd ${COMPARE}/current
|
|
./bin/release -d $ARCHIVES $METHODS
|
|
./bin/h5vers -i
|
|
cvs -Q commit -m Snapshot
|
|
)
|
|
fi
|
|
|
|
# Replace the previous version with the current version.
|
|
rm -rf ${COMPARE}/previous
|
|
mv ${COMPARE}/current ${COMPARE}/previous
|
|
exit 0
|