Speed up in filtering files

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@8682 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2001-01-18 18:52:31 +00:00
parent a9a8ba61a7
commit 3bb5b73f94

View file

@ -46,11 +46,13 @@ make debug=yes \
# `-v' inverts the matching, so lines which do not match are outputted
#
mv file-list-debug file-list.tmp
grep -f file-list -v -x file-list.tmp >> file-list-debug.tmp
rm -f file-list.tmp
echo "%attr (-, root, root)" > file-list-debug
cat file-list-debug.tmp >> file-list-debug
for file in `cat file-list`; do
grep -v -x $file file-list.tmp >> file-list-debug.tmp
mv file-list-debug.tmp file-list.tmp
done
rm -f file-list-debug.tmp
mv file-list.tmp file-list-debug
#
# Clean commands