1#! /bin/sh 2 3. ${tstdir-.}/lib.sh 4. ${tstdir-.}/conf.sh 5 6rm -rf dir1 dir2 dir3 7# make the copy-from-here tree 8mkdir dir1 9cd dir1 10generate_tree_1 11mkdirfile meh.txt 12# make the tree we want to compare to 13mkdir ../dir2 14cd ../dir2 15mkdirfile meh.txt 16 17cd .. 18$rsync -a --exclude='*/' dir1/ dir3 19compare_trees dir2 dir3 20