aboutsummaryrefslogtreecommitdiffstats
path: root/utils/mkpatch
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-18 18:30:18 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-18 18:30:18 +0000
commit161a2fb9d83993ed77f20f5b8551f426d821b18e (patch)
tree563768ca6ec7825f2f6285553c8eedc523eeabc9 /utils/mkpatch
parent35d958cf769ba0efad9f7eeb43a54dc6d3c95556 (diff)
downloadexternal_llvm-161a2fb9d83993ed77f20f5b8551f426d821b18e.zip
external_llvm-161a2fb9d83993ed77f20f5b8551f426d821b18e.tar.gz
external_llvm-161a2fb9d83993ed77f20f5b8551f426d821b18e.tar.bz2
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
Diffstat (limited to 'utils/mkpatch')
-rwxr-xr-xutils/mkpatch3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/mkpatch b/utils/mkpatch
index 3daa604..71ce229 100755
--- a/utils/mkpatch
+++ b/utils/mkpatch
@@ -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"