diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2009-07-15 15:43:54 (GMT) |
---|---|---|
committer | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2009-07-15 15:43:54 (GMT) |
commit | 1fac09fa8ce3cbeb73f8cb49cbd41e7130d6220a (patch) | |
tree | 8b6759b213eb756b931692a4dc4421b1ec46ea09 /bin/chkmanifest | |
parent | 8f7c95a7900771c1c9b49c482b9bd9b37b5482e6 (diff) | |
download | hdf5-1fac09fa8ce3cbeb73f8cb49cbd41e7130d6220a.zip hdf5-1fac09fa8ce3cbeb73f8cb49cbd41e7130d6220a.tar.gz hdf5-1fac09fa8ce3cbeb73f8cb49cbd41e7130d6220a.tar.bz2 |
[svn-r17189] Merged the trunk changes into the branch:
svn merge -r17169:17188 https://svn.hdfgroup.uiuc.edu/hdf5/trunk
tested: smirom (icc, pgi), linew
Diffstat (limited to 'bin/chkmanifest')
-rwxr-xr-x | bin/chkmanifest | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/bin/chkmanifest b/bin/chkmanifest index dd30144..4f70a6d 100755 --- a/bin/chkmanifest +++ b/bin/chkmanifest @@ -107,6 +107,21 @@ else fi fi +# Check for duplicate entries. This can be done at any time, but it may as +# well be sooner so that if something else fails the presence of duplicates +# will already be known. +errcode=0 +DUPLICATES=`perl -ne 's/#.*//; next if /^\s*$/; if ($uniq{$_}++) { print $_; }' MANIFEST` +if [ "$DUPLICATES" ]; then + cat 1>&2 <<EOF +These entries appear more than once in the MANIFEST: +$DUPLICATES +Please remove the duplicate lines and try again. + +EOF +errcode=1 +fi + # Copy the manifest file to get a list of file names. grep '^\.' MANIFEST | expand | cut -f1 -d' ' >$MANIFEST @@ -117,6 +132,7 @@ for file in `cat $MANIFEST`; do fi done + # Inspect the .svn/entries to figure out what version of svn file entry is # used. # The following algorithm is formed via reverse engineering. @@ -130,7 +146,7 @@ if head -1 $svn_entry_file | grep 'xml version="1.0"' > /dev/null 2>&1;then elif grep '^file$' $svn_entry_file > /dev/null 2>&1; then getsvnentries=GETSVNENTRIES_14 else - echo "Unknow svn entries format. Aborted" + echo "Unknown svn entries format. Aborted" exit 1 fi @@ -155,5 +171,9 @@ EOF exit 1 fi +if [ $errcode > 0 ]; then + exit $errcode +fi + test "$verbose" && echo " The MANIFEST is up to date." 1>&2 exit 0 |