diff options
author | Dan Gohman <gohman@apple.com> | 2010-08-04 16:07:22 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-08-04 16:07:22 +0000 |
commit | 0c02736dae755b4e13511a721c8dee9e369afedc (patch) | |
tree | 744c157b834906b68c5e453027288985e46fbe31 /utils | |
parent | acd177e453bd3581daa64ea0c096cc86a615e329 (diff) | |
download | external_llvm-0c02736dae755b4e13511a721c8dee9e369afedc.zip external_llvm-0c02736dae755b4e13511a721c8dee9e369afedc.tar.gz external_llvm-0c02736dae755b4e13511a721c8dee9e369afedc.tar.bz2 |
Delete mkpatch. Everything it does is already done by svn diff by default.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110203 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/mkpatch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/utils/mkpatch b/utils/mkpatch deleted file mode 100755 index 2741563..0000000 --- a/utils/mkpatch +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -# -# This script makes a patch for LLVM ensuring the correct diff options and -# putting the files in a standard review order. - - -function error { - retcode="$?" - echo "mkpatch: error: $1 ($retcode)" - exit 1 -} - -if [ ! -e llvm.spec.in ] ; then - error "Please change directory to the LLVM top source directory" -fi -if [ "$#" -ne 1 ] ; then - error "usage: utils/mkpatch [PATCH_NAME]" -fi -NAME="$1" -echo "mkpatch: Generating differences on top level files" -svn diff -N -x -u > "$NAME".patch.raw 2>&1 -echo "mkpatch: Generating differences on all directories" -svn diff -x -u >> "$NAME".patch.raw 2>&1 \ - autoconf docs utils include lib/System lib/Support lib/VMCore lib/AsmParser \ - lib/Bitcode lib/Analysis lib/Transforms lib/CodeGen lib/Target \ - lib/ExecutionEngine lib/Linker lib/MC \ - tools test unittests runtime projects examples Xcode - -echo "mkpatch: Removing cruft from the patch file" -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"; } \ -/^Index:.*/ && !/^Index: .*[.]cvs$/ { deleting = 0; } \ -{ if (! deleting) { print; } } ' > "$NAME".patch || \ - error "sed/awk cleanup failed" - |