llvm.org GIT mirror llvm / 161a2fb
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 Reid Spencer 14 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
2828 echo "mkpatch: Removing cruft from the patch file"
2929 sed "$NAME".patch.raw -e '/^[?] .*/d' -e '/^cvs diff: Diffing/d' | awk '\
3030 BEGIN { deleting = 0; } \
31 /^Index: .*[.]cvs$/ { deleting = 1; } \
31 /^Index: .*[.]cvs$/ { deleting = 1; fname=substr($0,7);
32 print "Skipping: ", fname > "/dev/stderr"; } \
3233 /^Index:.*/ && !/^Index: .*[.]cvs$/ { deleting = 0; } \
3334 { if (! deleting) { print; } } \
3435 ' > "$NAME".patch || error "sed/awk cleanup failed"