summaryrefslogtreecommitdiff
path: root/adzap/scripts/chkzap
diff options
context:
space:
mode:
Diffstat (limited to 'adzap/scripts/chkzap')
-rwxr-xr-xadzap/scripts/chkzap16
1 files changed, 16 insertions, 0 deletions
diff --git a/adzap/scripts/chkzap b/adzap/scripts/chkzap
new file mode 100755
index 0000000..4a9ac08
--- /dev/null
+++ b/adzap/scripts/chkzap
@@ -0,0 +1,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$'
+ }