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:
524989a
)
Tweaked the names of the subdirs inside the tmp dir.
author
Wayne Davison
<wayned@samba.org>
Sat, 24 Apr 2004 18:53:00 +0000
(18:53 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sat, 24 Apr 2004 18:53:00 +0000
(18:53 +0000)
verify-patches
patch
|
blob
|
blame
|
history
diff --git
a/verify-patches
b/verify-patches
index
4037362
..
ee2cddf
100755
(executable)
--- a/
verify-patches
+++ b/
verify-patches
@@
-14,11
+14,11
@@
tmpdir=,tmp-for-patch-tests
[ -d $tmpdir ] || mkdir $tmpdir
cd $tmpdir || exit 1
[ -d $tmpdir ] || mkdir $tmpdir
cd $tmpdir || exit 1
-[ -d
,workdir ] || mkdir ,
workdir
-echo "Using CVS to update the $tmpdir/
,
cvsdir copy of the source."
-cvs -d "$root" co -d
,
cvsdir rsync
+[ -d
workdir ] || mkdir
workdir
+echo "Using CVS to update the $tmpdir/cvsdir copy of the source."
+cvs -d "$root" co -d cvsdir rsync
-cd
,
workdir || exit 1
+cd workdir || exit 1
if [ -z "$1" ]; then
set -- ../../*.diff
if [ -z "$1" ]; then
set -- ../../*.diff
@@
-36,11
+36,11
@@
for xx in "${@}"; do
while : ; do
echo -e "\n----------- $xx ------------"
if [ $apply = y ]; then
while : ; do
echo -e "\n----------- $xx ------------"
if [ $apply = y ]; then
- rsync -a --delete ../
,
cvsdir/ .
+ rsync -a --delete ../cvsdir/ .
patch -p0 <$xx | tee ,patch.output
new=''
for nn in `sed -n 's/^patching file //p' ,patch.output`; do
patch -p0 <$xx | tee ,patch.output
new=''
for nn in `sed -n 's/^patching file //p' ,patch.output`; do
- [ -f ../
,
cvsdir/$nn ] || new="$new $nn"
+ [ -f ../cvsdir/$nn ] || new="$new $nn"
done
if grep "^Hunk #[0-9]* FAILED" ,patch.output >/dev/null; then
default=F
done
if grep "^Hunk #[0-9]* FAILED" ,patch.output >/dev/null; then
default=F