]> git.wh0rd.org - fontconfig.git/blob - setfontdirs
109d9eea567767ec24506140a4fca1db84e90be6
[fontconfig.git] / setfontdirs
1 #!/bin/sh
2 #
3 # $XFree86$
4 #
5 LANG=C
6 export LANG
7 FONTDIRS=fontdirs$$
8 trap "rm $FONTDIRS" 0
9 sh ./findfonts ${1+"$@"} > $FONTDIRS
10 cp fonts.conf.in fonts.conf
11 chmod +w fonts.conf
12 ed fonts.conf << EOF
13 /FONTPATH_END/a
14 <!-- Font directory list configured on `date` -->
15 .
16 +r $FONTDIRS
17 a
18
19 .
20 /FONTPATH_START/,/FONTPATH_END/d
21 w
22 q
23 EOF
24