setfontdirs 268 Bytes
Newer Older
Keith Packard's avatar
Keith Packard committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#!/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