Matt McCutchen's Web Site
/
rsync
/
rsync-patches.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d788631
)
Use egrep in place of a sequence of greps.
author
Wayne Davison
<wayned@samba.org>
Sat, 24 Apr 2004 20:14:25 +0000
(20:14 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sat, 24 Apr 2004 20:14:25 +0000
(20:14 +0000)
verify-patches
patch
|
blob
|
blame
|
history
diff --git
a/verify-patches
b/verify-patches
index
ee2cddf
..
928e24c
100755
(executable)
--- a/
verify-patches
+++ b/
verify-patches
@@
-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
;;