5 # usage: util/overlap.sh [directory]
7 # This script runs the overlap example program on a complete directory tree.
9 # Copyright (C) 1996-2011 Markus Franz Xaver Johannes Oberhumer
13 test -x .
/examples
/overlap
&& OVERLAP
="./examples/overlap"
14 test -x .
/overlap.exe
&& OVERLAP
="./overlap.exe"
18 TMPFILE
="/tmp/lzo_$$.tmp"
20 (find $dir/ -type f
-print0 > $TMPFILE) || true
22 cat $TMPFILE |
xargs -0 -r $OVERLAP