* I guess this commit is for ignoring fc-lang in this directory...
[dejavu.git] / dejavu-fonts / stats.sh
blob15621f3d37c19b8560b3bd3cc9bff27e7b3f6767
1 #!/bin/sh
3 # $Id$
5 # DejaVu fonts statistics generator
6 # (c)2005 Stepan Roh (PUBLIC DOMAIN)
7 # usage: ./stats.sh
9 # Motto: "To proof that each task can be coded in very complicated way."
11 echo "Version New glyphs*)"
12 echo "-------- ----------"
13 versions=`grep 'U+' status.txt \
14 | tr -s ' ' \
15 | cut -d' ' -f 3 \
16 | sed 's,original,0.0,' \
17 | sed 's,^\(.\)\.\(.\)$,\1.0\2,' \
18 | sort \
19 | uniq \
20 | sed 's,^\(.\).0\(.\)$,\1.\2,' \
21 | sed 's,0\.0,original,'`
22 for ver in $versions; do
23 sver=`echo $ver | sed 's,\.,\\\\.,'`
24 count=`grep "^U+.*$sver\( \|$\)" status.txt | wc -l`
25 printf '%-8s %10i\n' $ver $count
26 done
27 echo
28 echo "*) some glyphs may be counted multiple times if they were added to different faces in different versions"