summaryrefslogtreecommitdiff
path: root/adzap/scripts/chkzap
blob: 4a9ac08be213247b98433a7c272a56311d826d22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh 
# 
# Sanity check the patterns file against the wrapzap script, inspired by example 
# code from Scott Tregear. 
# - Cameron Simpson <cs@zip.com.au> 27jan2002 
# 
 
echo `sed -n 's/^STUBURL_\([A-Z][A-Z0-9_]*\)=.*/\1/p' wrapzap` \
| tr ' ' '|' \
| { read alt
    grep '^[^#]' ../rc/patterns \
    | egrep -v "^($alt" \
    | sed 's/ .*//' \
    | sort -u \
    | grep -v '^PASS$'
  }