Skip to content

Commit

Permalink
Slightly improved algorighm
Browse files Browse the repository at this point in the history
Consider olpc/htcdream models, use extras
  • Loading branch information
Sergey V. Udaltsov committed Apr 17, 2011
1 parent 0f0b531 commit 3193b43
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/genLists4Comparizon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,13 @@
ROOT="`dirname $0`/.."
F1=reg2ll.lst
F2=gn2ll.lst
F1b=${F1}base
F1e=${F1}extras

xsltproc $ROOT/xslt/reg2ll.xsl $ROOT/rules/base.xml | sort | uniq > $F1
xsltproc $ROOT/xslt/reg2ll.xsl $ROOT/rules/base.xml > $F1b
xsltproc $ROOT/xslt/reg2ll.xsl $ROOT/rules/base.extras.xml > $F1e
cat $F1b $F1e | sort | uniq > $F1
rm -f $F1e $F1e

for i in $ROOT/symbols/*; do
if [ -f $i ]; then
Expand All @@ -34,7 +39,10 @@ for i in $ROOT/symbols/*; do
} else
{
name=$2;
printf "%s(%s):\"%s\"\n", id, variant, name;
if (variant == "olpc" || variant == "htcdream")
printf "%s:\"%s\"\n", id, name;
else
printf "%s(%s):\"%s\"\n", id, variant, name;
}
}' $i
fi
Expand Down

0 comments on commit 3193b43

Please sign in to comment.