From: Wayne Davison Date: Fri, 21 May 2004 09:18:47 +0000 (+0000) Subject: Strip off the new "a/" and "b/" path prefixes in the diff headers. X-Git-Url: https://mattmccutchen.net/rsync/rsync-patches.git/commitdiff_plain/3455b99aa1ef0b9155d1c226e2ad8ebb939df042 Strip off the new "a/" and "b/" path prefixes in the diff headers. --- diff --git a/verify-patches b/verify-patches index 7100d32..6cc2c17 100755 --- a/verify-patches +++ b/verify-patches @@ -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 ;;