blob: 797de282117284e768c4f821f6253c4c57ff2e49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/bash
#
# strip out anything but the required lines and put everything in one spot - zzz
#
if [ ! -s squished/squish-done ]; then
rm -rf squished
mkdir squished
for f in {protocols/*/*.pat,*.pat}; do
n=`basename $f`
echo -en "Squishing: $n \r"
grep -v "^\s*$\|^#\|^userspace " $f > squished/$n
if [ `wc -l squished/$n | cut -d ' ' -f 1` -ne 2 ]; then
echo "error while squishing $f..."
exit 1
fi
done
rm -f squished/unknown
echo 1 > squished/squish-done
fi
echo "L7 filters squished."
|