fontconfig/setfontdirs

27 lines
343 B
Plaintext
Raw Normal View History

2002-02-15 00:34:13 +01:00
#!/bin/sh
#
# $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
<dir>~/.fonts</dir>
2002-02-15 00:34:13 +01:00
.
/FONTPATH_START/,/FONTPATH_END/d
2002-02-15 00:34:13 +01:00
w
q
EOF