aboutsummaryrefslogtreecommitdiffstats
path: root/utils/mkpatch
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-17 03:38:22 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-17 03:38:22 +0000
commit2c13f6657a8d7543b7202c23be0ae351f9bec1ed (patch)
tree979dbf53459bf47a92f9d3d8ea45b76e8f1eb9eb /utils/mkpatch
parentb0fcf8fe8fbb7d79fc8c2f0c5554862fa35f7646 (diff)
downloadexternal_llvm-2c13f6657a8d7543b7202c23be0ae351f9bec1ed.zip
external_llvm-2c13f6657a8d7543b7202c23be0ae351f9bec1ed.tar.gz
external_llvm-2c13f6657a8d7543b7202c23be0ae351f9bec1ed.tar.bz2
Fix this tool for use on Darwin which requires the file to come after the
commands. Linux is more forgiving. Patch by Gordon Henriksen. Thanks, Gordon! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33285 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/mkpatch')
-rwxr-xr-xutils/mkpatch2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/mkpatch b/utils/mkpatch
index a800f0d..415fa78 100755
--- a/utils/mkpatch
+++ b/utils/mkpatch
@@ -27,7 +27,7 @@ cvs diff -Ntdup -5 >> "$NAME".patch.raw 2>&1 \
tools test runtime projects examples win32 Xcode
echo "mkpatch: Removing cruft from the patch file"
-sed "$NAME".patch.raw -e '/^[?] .*/d' -e '/^cvs diff: Diffing/d' | awk '\
+sed -e '/^[?] .*/d' -e '/^cvs diff: Diffing/d' "$NAME".patch.raw | awk '\
BEGIN { deleting = 0; } \
/^Index: .*[.]cvs$/ { deleting = 1; fname=substr($0,7); \
print "Skipping: ", fname > "/dev/stderr"; } \