Use egrep in place of a sequence of greps.
authorWayne Davison <wayned@samba.org>
Sat, 24 Apr 2004 20:14:25 +0000 (20:14 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 24 Apr 2004 20:14:25 +0000 (20:14 +0000)
verify-patches

index ee2cddf..928e24c 100755 (executable)
@@ -61,11 +61,7 @@ for xx in "${@}"; do
            new=''
            rm -f *.rej *.orig
            sed '/^--- /,$ d' $xx >,new.patch
            new=''
            rm -f *.rej *.orig
            sed '/^--- /,$ d' $xx >,new.patch
-           cvs diff -N | grep -v '^Index: ' |
-               grep -v '^=========' |
-               grep -v '^diff -' |
-               grep -v '^RCS file: ' |
-               grep -v '^retrieving revision ' >>,new.patch
+           cvs diff -N | egrep -v '^(diff -|===============|RCS file: |retrieving revision |Index: )' >>,new.patch
            vim -d $xx ,new.patch
            default=U
            ;;
            vim -d $xx ,new.patch
            default=U
            ;;