diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2000-06-07 20:41:49 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2000-06-07 20:41:49 (GMT) |
commit | eb60599a779b60983ebc462b565cecbb8686cd63 (patch) | |
tree | bbffa376e9cc0c34d00aa668453ed5f1557ded1b /bin/chkmanifest | |
parent | 6e7c3212d378952f17255a38ddb8c69f77e20e42 (diff) | |
download | hdf5-eb60599a779b60983ebc462b565cecbb8686cd63.zip hdf5-eb60599a779b60983ebc462b565cecbb8686cd63.tar.gz hdf5-eb60599a779b60983ebc462b565cecbb8686cd63.tar.bz2 |
[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.
Diffstat (limited to 'bin/chkmanifest')
-rwxr-xr-x | bin/chkmanifest | 5 |
1 files changed, 4 insertions, 1 deletions
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" |