summaryrefslogtreecommitdiff
path: root/tests/genLists4Comparizon.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/genLists4Comparizon.sh')
-rwxr-xr-xtests/genLists4Comparizon.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/genLists4Comparizon.sh b/tests/genLists4Comparizon.sh
new file mode 100755
index 0000000..62f1718
--- /dev/null
+++ b/tests/genLists4Comparizon.sh
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+ROOT="`dirname $0`/.."
+F1=reg2ll.lst
+F2=gn2ll.lst
+
+xsltproc $ROOT/xslt/reg2ll.xsl $ROOT/rules/base.xml | sort | uniq > $F1
+
+for i in $ROOT/symbols/*; do
+ if [ -f $i ]; then
+ id="`basename $i`"
+ gawk 'BEGIN{FS="\""}/^[[:space:]]*name\[Group1\][[:space:]]*=/{print $2;}' $i | while read name; do
+ echo "$id:\"$name\""
+ done
+ fi
+done | sort | uniq > $F2
+
+diff $F1 $F2