5 echo "usage: $0 [font directory, defaults to QTDIR/lib/fonts]"
22 family=`echo $base|cut -d_ -f1`
23 pt=`echo $base|cut -d_ -f2`
24 weight=`echo $base|cut -d_ -f3|sed -e 's,i$,,'`
25 if (echo $base|cut -d_ -f3|grep -q 'i$'); then
30 echo "$family $base.qpf QPF $italic $weight $pt u"
34 if [ -n "$QTDIR" ]; then
35 fontdir=$QTDIR/lib/fonts
37 fontdir=/opt/QtPalmtop/lib/fonts
43 if ! [ -d $fontdir ]; then
44 echo Error: $fontdir not a directory
48 if [ -e $fontdir/fontdir ]; then
49 cat $fontdir/fontdir | grep -v '\.qpf' > $fontdir/fontdir.new
53 for file in `ls $fontdir/*.qpf|sed -e's,\.qpf$,,; s,_t[^_]*$,,;'|sort -u`; do
56 ) >> $fontdir/fontdir.new
58 mv $fontdir/fontdir.new $fontdir/fontdir
62 # vim:ai:et:sts=4:sw=4:tw=0: