Do a better job of finding the .rej files to edit (since they can
[rsync/rsync-patches.git] / 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]*)