20 lines
268 B
Plaintext
20 lines
268 B
Plaintext
|
#!/bin/sh
|
||
|
FONTDIRS=fontdirs$$
|
||
|
trap "rm $FONTDIRS" 0
|
||
|
sh ./findfonts > $FONTDIRS
|
||
|
cp fonts.conf.in fonts.conf
|
||
|
chmod +w fonts.conf
|
||
|
ed fonts.conf << EOF
|
||
|
/FONTPATH_END/a
|
||
|
<!-- Font directories found on `date` -->
|
||
|
.
|
||
|
+r $FONTDIRS
|
||
|
a
|
||
|
|
||
|
.
|
||
|
/FONTPATH_START/,/FONTPATH_END/d
|
||
|
w
|
||
|
q
|
||
|
EOF
|
||
|
|