mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-28 09:31:03 +00:00
Make the awk filter print out which files its eliminating.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31851 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
35d958cf76
commit
161a2fb9d8
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user