Make the awk filter print out which files its eliminating.

llvm-svn: 31851
This commit is contained in:
Reid Spencer 2006-11-18 18:30:18 +00:00
parent 2ca613bcad
commit 4924c53b5e
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,8 @@ cvs diff -Ntdup -5 >> "$NAME".patch.raw 2>&1 \
echo "mkpatch: Removing cruft from the patch file"
sed "$NAME".patch.raw -e '/^[?] .*/d' -e '/^cvs diff: Diffing/d' | awk '\
BEGIN { deleting = 0; } \
/^Index: .*[.]cvs$/ { deleting = 1; } \
/^Index: .*[.]cvs$/ { deleting = 1; fname=substr($0,7);
print "Skipping: ", fname > "/dev/stderr"; } \
/^Index:.*/ && !/^Index: .*[.]cvs$/ { deleting = 0; } \
{ if (! deleting) { print; } } \
' > "$NAME".patch || error "sed/awk cleanup failed"