mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-03 02:32:04 +08:00
e3d9211fa9
Update copyrights Description: Updated copyright information in hdf5/bin and top-level and added some more files to be skipped to the chkcopyright config file. Platforms tested: None - just eyeballed
60 lines
1.8 KiB
Bash
Executable File
60 lines
1.8 KiB
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright by the Board of Trustees of the University of Illinois.
|
|
# All rights reserved.
|
|
#
|
|
# This file is part of HDF5. The full HDF5 copyright notice, including
|
|
# terms governing use, modification, and redistribution, is contained in
|
|
# the files COPYING and Copyright.html. COPYING can be found at the root
|
|
# of the source code distribution tree; Copyright.html can be found at the
|
|
# root level of an installed copy of the electronic HDF5 document set and
|
|
# is linked from the top-level documents page. It can also be found at
|
|
# http://hdf.ncsa.uiuc.edu/HDF5/doc/Copyright.html. If you do not have
|
|
# access to either file, you may request a copy from hdfhelp@ncsa.uiuc.edu.
|
|
#
|
|
|
|
# Check that all the files in MANIFEST exist and that (if this is a
|
|
# CVS checkout) that all the CVS-managed files appear in the
|
|
# MANIFEST.
|
|
|
|
verbose=yes
|
|
MANIFEST=/tmp/H5_MANIFEST.$$
|
|
|
|
# clean up $MANIFEST file when exits
|
|
trap "rm -f $MANIFEST" 0
|
|
|
|
# Copy the manifest file to get a list of file names.
|
|
grep '^\.' MANIFEST | expand | cut -f1 -d' ' >$MANIFEST
|
|
|
|
test "$verbose" && echo " Checking MANIFEST..." 1>&2
|
|
test -f $MANIFEST || exit 1
|
|
for file in `cat $MANIFEST`; do
|
|
if [ ! -f $file ]; then
|
|
echo "- $file"
|
|
fail=yes
|
|
fi
|
|
done
|
|
for cvs in `find . -type d -name CVS -print`; do
|
|
path=`echo $cvs |sed 's/\/CVS//'`
|
|
for file in `grep '^\/' $cvs/Entries |cut -d/ -f2`; do
|
|
if (grep $path/$file$ $MANIFEST >/dev/null); then
|
|
:
|
|
else
|
|
echo "+ $path/$file"
|
|
fail=yes
|
|
fi
|
|
done
|
|
done
|
|
|
|
if [ "X$fail" = "Xyes" ]; then
|
|
cat 1>&2 <<EOF
|
|
The MANIFEST is out of date. Files marked with a minus sign (-) no
|
|
longer exist; files marked with a plus sign (+) are CVS-managed but do
|
|
not appear in the MANIFEST. Please remedy the situation and try again.
|
|
EOF
|
|
exit 1
|
|
fi
|
|
|
|
test "$verbose" && echo " The MANIFEST is up to date." 1>&2
|
|
exit 0
|