Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / lzo / util / overlap.sh
blob8f3b16b13bae0fe4c097121dfc2e7e4608c96b64
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-2014 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