git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a217ad3
)
When comparing directories, use `find .` to call diff, rather than
author
Martin Pool
<mbp@samba.org>
Fri, 25 Jan 2002 10:55:59 +0000
(10:55 +0000)
committer
Martin Pool
<mbp@samba.org>
Fri, 25 Jan 2002 10:55:59 +0000
(10:55 +0000)
diff -r. Two reasons: diff -r might not work everywhere, and it also
might complain about nonregular files.
testsuite/rsync.fns
patch
|
blob
|
history
diff --git
a/testsuite/rsync.fns
b/testsuite/rsync.fns
index 5525062ac34e70c0e91b1d6052bbe4e16a65fdfa..1e9e81937015e9693c2e59b78d57552c90e42869 100644
(file)
--- a/
testsuite/rsync.fns
+++ b/
testsuite/rsync.fns
@@
-150,7
+150,11
@@
checkit() {
echo "-------------"
echo "check how the files compare with diff:"
echo ""
- diff -cr $2 $3 || failed=YES
+ for f in `cd "$2"; find . -type f -print `
+ do
+ diff -u "$2"/"$f" "$3"/"$f" || failed=YES
+ done
+
echo "-------------"
echo "check how the directory listings compare with diff:"
echo ""