Do a better job of finding the .rej files to edit (since they can
authorWayne Davison <wayned@samba.org>
Tue, 18 May 2004 09:52:32 +0000 (09:52 +0000)
committerWayne Davison <wayned@samba.org>
Tue, 18 May 2004 09:52:32 +0000 (09:52 +0000)
be in a subdir).

verify-patches

index 44251d6..7100d32 100755 (executable)
@@ -59,14 +59,14 @@ for xx in "${@}"; do
        [Ee]*)
            [ ! -z "$new" ] && cvs add $new
            new=''
-           rm -f *.rej *.orig
+           rm -f *.rej *.orig */*.rej */*.orig
            sed '/^--- /,$ d' $xx >,new.patch
            cvs diff -N | egrep -v '^(diff -|===============|RCS file: |retrieving revision |Index: )' >>,new.patch
            vim -d $xx ,new.patch
            default=U
            ;;
        [Ff]*)
-           vim *.rej
+           vim `sed -ne 's/.* saving rejects to file //p' ,patch.output`
            default=E
            ;;
        [Uu]*)