Matt McCutchen's Web Site
/
rsync
/
rsync-patches.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed failing hunks.
[rsync/rsync-patches.git]
/
verify-patches
diff --git
a/verify-patches
b/verify-patches
index
ee2cddf
..
7100d32
100755
(executable)
--- a/
verify-patches
+++ b/
verify-patches
@@
-51,7
+51,7
@@
for xx in "${@}"; do
fi
apply=n
fi
fi
apply=n
fi
- echo -e "\nFix rejects,
Make proto,
Edit both diffs, Update patch,"
+ echo -e "\nFix rejects, Edit both diffs, Update patch,"
echo -n "Apply patch again, Next, Quit: [$default] "
read ans
[ -z "$ans" ] && ans=$default
echo -n "Apply patch again, Next, Quit: [$default] "
read ans
[ -z "$ans" ] && ans=$default
@@
-59,23
+59,14
@@
for xx in "${@}"; do
[Ee]*)
[ ! -z "$new" ] && cvs add $new
new=''
[Ee]*)
[ ! -z "$new" ] && cvs add $new
new=''
- rm -f *.rej *.orig
+ rm -f *.rej *.orig
*/*.rej */*.orig
sed '/^--- /,$ d' $xx >,new.patch
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
;;
[Ff]*)
vim -d $xx ,new.patch
default=U
;;
[Ff]*)
- vim *.rej
- default=E
- ;;
- [Mm]*)
- cat *.c lib/compat.c | awk -f mkproto.awk >proto.h
- echo -e "\nRegenerated proto.h"
+ vim `sed -ne 's/.* saving rejects to file //p' ,patch.output`
default=E
;;
[Uu]*)
default=E
;;
[Uu]*)