3 [ -d patches ] && cd patches
5 if [ ! -f verify-patches ]; then
6 echo "Please run this script from the root of the rsync dir"
7 echo "or from inside the patches subdir."
11 root=`cat ../CVS/Root`
12 cvsdir=,cvsdir-for-patch-tests
13 tmpdir=,tmpdir-for-patch-tests
15 [ -d $tmpdir ] || mkdir $tmpdir
16 cvs -d "$root" co -d $cvsdir rsync
26 *gzip-rsyncable.diff) continue ;;
27 patches/*) xx=`echo $xx | sed 's:patches:..:'` ;;
32 rsync -a --delete ../$cvsdir/ .
33 echo -e "\n----------- $xx ------------"
34 patch -p0 <$xx | tee ,patch.output
36 for nn in `sed -n 's/^patching file //p' ,patch.output`; do
37 [ -f ../$cvsdir/$nn ] || new="$new $nn"
40 echo -ne "\nFix rejections, Make proto.h, Edit diffs, Update, Next: [n] "
45 [ ! -z "$new" ] && cvs add $new
48 cvs diff -N | grep -v '^Index: ' |
49 grep -v '^=========' |
51 grep -v '^RCS file: ' |
52 grep -v '^retrieving revision ' >,new.patch
59 cat *.c lib/compat.c | awk -f mkproto.awk >proto.h
60 echo -e "\nRegenerated proto.h"
63 if [ -f ,new.patch ]; then
65 echo -e "\nCopied ,new.patch to $xx"
67 echo -e "\n*** Edit the diffs first. ***"