]> git.wh0rd.org - fontconfig.git/blob - setfontdirs
FcLangSetHasLang was not actually checking the language set itself
[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 <dir>~/.fonts</dir>
19
20 .
21 /FONTPATH_START/,/FONTPATH_END/d
22
23 w
24 q
25 EOF
26