testing the group names against layout names
[xorg/xkeyboard-config] / tests / genLists4Comparizon.sh
1 #!/bin/sh
2
3 ROOT="`dirname $0`/.."
4 F1=reg2ll.lst
5 F2=gn2ll.lst
6
7 xsltproc $ROOT/xslt/reg2ll.xsl $ROOT/rules/base.xml | sort | uniq > $F1
8
9 for i in $ROOT/symbols/*; do
10   if [ -f $i ]; then
11     id="`basename $i`"
12     gawk 'BEGIN{FS="\""}/^[[:space:]]*name\[Group1\][[:space:]]*=/{print $2;}' $i | while read name; do
13       echo "$id:\"$name\""
14     done
15   fi
16 done | sort | uniq > $F2
17
18 diff $F1 $F2