blob: 254b982c525193c6d355ec2184d8e6f9317cb605 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#!/bin/sh
LANGTABLE=../lang-table
ARCH=$1
if [ -z "$ARCH" ]; then
echo "usage: $0 <arch>"
exit 1
fi
fontlist=`awk '{ print $4 }' < $LANGTABLE | egrep -v "(None|Kon)" | sort -u`
echo $fontlist
TMPDIR=/tmp/fontdir.$$
rm -rf $TMPDIR
rm -rf $TMPDIR
mkdir -p $TMPDIR
for n in $fontlist; do
echo -n $n
map=$(grep $n $LANGTABLE | head -1 | awk '{ print $3 }')
echo -n " map "
echo $map
consolechars --tty /dev/tty1 -f $map -m $n
../utils/snarffont > $TMPDIR/$n
done
consolechars --tty /dev/tty1 -d
(cd $TMPDIR > /dev/null; ls * | cpio -o -H crc) | gzip -9 > fonts-$ARCH
rm -rf $TMPDIR
|