From eb60599a779b60983ebc462b565cecbb8686cd63 Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Wed, 7 Jun 2000 15:41:49 -0500 Subject: [svn-r2362] Changed the file searching pattern to look for end of line to match a complete file name. This distinguish file ./config/unicos from ./config/unicosmk. Tossed in a cleanup feature by removing the temporary file when finished. --- bin/chkmanifest | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/chkmanifest b/bin/chkmanifest index 63612c8..a6f56a2 100755 --- a/bin/chkmanifest +++ b/bin/chkmanifest @@ -7,6 +7,9 @@ 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 @@ -21,7 +24,7 @@ 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 + if (grep $path/$file$ $MANIFEST >/dev/null); then : else echo "+ $path/$file" -- cgit v0.12