File: gen_fallbacks

package info (click to toggle)
trscripts 1.5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 860 kB
  • ctags: 25
  • sloc: sh: 763; makefile: 81
file content (24 lines) | stat: -rwxr-xr-x 479 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

zcat \
    /usr/share/console-cyrillic/cyrillic-graph.fallback.gz \
    /usr/share/consoletrans/latin_diacr.fallback.gz \
    /usr/share/consoletrans/misc.fallback.gz \
    /usr/share/consoletrans/arabic_forms.fallback.gz \
    /usr/share/consoletrans/graph.fallback.gz \
    /usr/share/consoletrans/qrczak.fallback.gz |
sed 's/U+//g' |
awk '
/^ *#/ {
    next;
}
{
    if ($2!="" && tt[$1]=="")
	tt[$1]=$0;
    next;
}
END {
    for(i in tt)
	print tt[i];
}
' | sort