LZO 2.0.6 source (unconfigured)
[tomato.git] / release / src / router / lzo / util / overlap.sh
blob727c86f1e7b5f2a56cf501a3a9105c6aba6960da
1 #! /bin/sh
2 set -e
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
12 OVERLAP="overlap"
13 test -x ./examples/overlap && OVERLAP="./examples/overlap"
14 test -x ./overlap.exe && OVERLAP="./overlap.exe"
16 dir="${*-.}"
18 TMPFILE="/tmp/lzo_$$.tmp"
19 rm -f $TMPFILE
20 (find $dir/ -type f -print0 > $TMPFILE) || true
22 cat $TMPFILE | xargs -0 -r $OVERLAP
24 rm -f $TMPFILE
25 echo "Done."
26 exit 0