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 ee2cddff61d4234cfa78f3fed2c29cf2fc98f564..928e24c4a0abf30efae1132da1e6f3ae474f037c 100755 (executable)
@@ -61,11 +61,7 @@ for xx in "${@}"; do
            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
            ;;