Strip off the new "a/" and "b/" path prefixes in the diff headers.
authorWayne Davison <wayned@samba.org>
Fri, 21 May 2004 09:18:47 +0000 (09:18 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 21 May 2004 09:18:47 +0000 (09:18 +0000)
verify-patches

index 7100d32..6cc2c17 100755 (executable)
@@ -61,7 +61,9 @@ for xx in "${@}"; do
            new=''
            rm -f *.rej *.orig */*.rej */*.orig
            sed '/^--- /,$ d' $xx >,new.patch
-           cvs diff -N | egrep -v '^(diff -|===============|RCS file: |retrieving revision |Index: )' >>,new.patch
+           cvs diff -N |
+               egrep -v '^(diff -|===============|RCS file: |retrieving revision |Index: )' |
+               sed -e 's:^--- a/:--- :' -e 's:^+++ b/:+++ :' >>,new.patch
            vim -d $xx ,new.patch
            default=U
            ;;