blob: f2b4406396ba910924061d9983b71ada33a6944f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#! /bin/sh
. ${tstdir-.}/lib.sh
. ${tstdir-.}/conf.sh
rm -rf dir1 dir2 dir3
# make the copy-from-here tree
mkdir dir1
cd dir1
generate_tree_1
# make the tree we want to compare to
mkdir ../dir2
cd ../dir2
generate_tree_1
find . -type f \! -name '*.txt' -exec rm {} \;
cd ..
$rsync -a --include='*.txt' --include='*/' --exclude='*' dir1/ dir3
compare_trees dir2 dir3
|