2002-02-15 00:34:13 +01:00
|
|
|
#!/bin/sh
|
2002-06-04 23:55:42 +02:00
|
|
|
#
|
|
|
|
# $XFree86$
|
|
|
|
#
|
|
|
|
LANG=C
|
|
|
|
export LANG
|
2002-02-15 00:34:13 +01:00
|
|
|
FONTDIRS=fontdirs$$
|
|
|
|
trap "rm $FONTDIRS" 0
|
2002-05-21 19:08:42 +02:00
|
|
|
sh ./findfonts ${1+"$@"} > $FONTDIRS
|
2002-02-15 00:34:13 +01:00
|
|
|
cp fonts.conf.in fonts.conf
|
|
|
|
chmod +w fonts.conf
|
|
|
|
ed fonts.conf << EOF
|
|
|
|
/FONTPATH_END/a
|
2002-05-21 19:08:42 +02:00
|
|
|
<!-- Font directory list configured on `date` -->
|
2002-02-15 00:34:13 +01:00
|
|
|
.
|
|
|
|
+r $FONTDIRS
|
|
|
|
a
|
2002-08-01 18:17:33 +02:00
|
|
|
<dir>~/.fonts</dir>
|
2002-02-15 00:34:13 +01:00
|
|
|
|
|
|
|
.
|
|
|
|
/FONTPATH_START/,/FONTPATH_END/d
|
2002-08-01 18:17:33 +02:00
|
|
|
|
2002-02-15 00:34:13 +01:00
|
|
|
w
|
|
|
|
q
|
|
|
|
EOF
|
|
|
|
|