[llvm-commits] CVS: llvm/utils/mkpatch

Reid Spencer reid at x10sys.com
Sat Nov 18 10:30:33 PST 2006



Changes in directory llvm/utils:

mkpatch updated: 1.1 -> 1.2
---
Log message:

Make the awk filter print out which files its eliminating.


---
Diffs of the changes:  (+2 -1)

 mkpatch |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/utils/mkpatch
diff -u llvm/utils/mkpatch:1.1 llvm/utils/mkpatch:1.2
--- llvm/utils/mkpatch:1.1	Sat Nov 18 12:02:30 2006
+++ llvm/utils/mkpatch	Sat Nov 18 12:30:18 2006
@@ -29,7 +29,8 @@
 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"






More information about the llvm-commits mailing list