summaryrefslogtreecommitdiffstats
path: root/fonts/updfonts
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-09 19:09:54 +0000
committerErik Troan <ewt@redhat.com>2000-05-09 19:09:54 +0000
commit9d0fd87f2d3c684ad548f97cb82238c076682260 (patch)
treeb67d87c57021a83f063a4b9d37f6c416b5ca8c24 /fonts/updfonts
parent903ced836c5af3d00fbba0903e525f5253738fe8 (diff)
downloadanaconda-9d0fd87f2d3c684ad548f97cb82238c076682260.tar.gz
anaconda-9d0fd87f2d3c684ad548f97cb82238c076682260.tar.xz
anaconda-9d0fd87f2d3c684ad548f97cb82238c076682260.zip
*** empty log message ***
Diffstat (limited to 'fonts/updfonts')
-rwxr-xr-xfonts/updfonts36
1 files changed, 36 insertions, 0 deletions
diff --git a/fonts/updfonts b/fonts/updfonts
new file mode 100755
index 000000000..e7b597103
--- /dev/null
+++ b/fonts/updfonts
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+LANGTABLE=../lang-table
+
+ARCH=$1
+if [ -z "$ARCH" ]; then
+ echo "usage: $0 <arch>"
+ exit 1
+fi
+
+fontlist=`awk '{ print $4 }' < $LANGTABLE | grep -v "None" | 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