]> de.git.xonotic.org Git - xonotic/netradiant.git/blob - install-dlls.sh
Merge remote-tracking branch 'origin/divVerent/leak-fix'
[xonotic/netradiant.git] / install-dlls.sh
1 #!/bin/sh
2
3 set -ex
4
5 : ${WHICHDLL:=which}
6 : ${GTKDIR:=/gtk}
7 : ${CP:=cp}
8 : ${CAT:=cat}
9 : ${MKDIR:=mkdir -p}
10 : ${INSTALLDIR:=.}
11
12 for DLL in \
13         freetype6.dll \
14         intl.dll \
15         libatk-1.0-0.dll \
16         libcairo-2.dll \
17         libexpat-1.dll \
18         libfontconfig-1.dll \
19         libgdkglext-win32-1.0-0.dll \
20         libgdk_pixbuf-2.0-0.dll \
21         libgdk-win32-2.0-0.dll \
22         libgio-2.0-0.dll \
23         libglib-2.0-0.dll \
24         libgmodule-2.0-0.dll \
25         libgobject-2.0-0.dll \
26         libgthread-2.0-0.dll \
27         libgtkglext-win32-1.0-0.dll \
28         libgtk-win32-2.0-0.dll \
29         libpango-1.0-0.dll \
30         libpangocairo-1.0-0.dll \
31         libpangoft2-1.0-0.dll \
32         libpangowin32-1.0-0.dll \
33         libpng14-14.dll \
34         libxml2-2.dll \
35         zlib1.dll \
36         libgcc_s_sjlj-1.dll \
37         libstdc++-6.dll \
38 ; do
39         $CP "`$WHICHDLL $DLL`" $INSTALLDIR/
40 done
41
42 $MKDIR $INSTALLDIR/etc/fonts
43 $CAT > $INSTALLDIR/etc/fonts/fonts.conf <<EOF
44 <?xml version="1.0"?>
45 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
46 <!-- /etc/fonts/fonts.conf file to configure system font access -->
47 <fontconfig>
48
49 <!--
50         DO NOT EDIT THIS FILE.
51         IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
52         LOCAL CHANGES BELONG IN 'local.conf'.
53
54         The intent of this standard configuration file is to be adequate for
55         most environments.  If you have a reasonably normal environment and
56         have found problems with this configuration, they are probably
57         things that others will also want fixed.  Please submit any
58         problems to the fontconfig bugzilla system located at fontconfig.org
59
60         Note that the normal 'make install' procedure for fontconfig is to
61         replace any existing fonts.conf file with the new version.  Place
62         any local customizations in local.conf which this file references.
63
64         Keith Packard
65 -->
66
67 <!-- Font directory list -->
68
69         <dir>WINDOWSFONTDIR</dir>
70         
71         <dir>~/.fonts</dir>
72
73 <!--
74   Accept deprecated 'mono' alias, replacing it with 'monospace'
75 -->
76         <match target="pattern">
77                 <test qual="any" name="family">
78                         <string>mono</string>
79                 </test>
80                 <edit name="family" mode="assign">
81                         <string>monospace</string>
82                 </edit>
83         </match>
84
85 <!--
86   Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
87 -->
88         <match target="pattern">
89                 <test qual="any" name="family">
90                         <string>sans serif</string>
91                 </test>
92                 <edit name="family" mode="assign">
93                         <string>sans-serif</string>
94                 </edit>
95         </match>
96
97 <!--
98   Accept deprecated 'sans' alias, replacing it with 'sans-serif'
99 -->
100         <match target="pattern">
101                 <test qual="any" name="family">
102                         <string>sans</string>
103                 </test>
104                 <edit name="family" mode="assign">
105                         <string>sans-serif</string>
106                 </edit>
107         </match>
108
109 <!--
110   Load local system customization file
111 -->
112         <include ignore_missing="yes">conf.d</include>
113
114 <!-- Font cache directory list -->
115
116         <cachedir>WINDOWSTEMPDIR_FONTCONFIG_CACHE</cachedir>
117         <cachedir>~/.fontconfig</cachedir>
118
119         <config>
120 <!--
121   These are the default Unicode chars that are expected to be blank
122   in fonts.  All other blank chars are assumed to be broken and
123   won't appear in the resulting charsets
124  -->
125                 <blank>
126                         <int>0x0020</int>       <!-- SPACE -->
127                         <int>0x00A0</int>       <!-- NO-BREAK SPACE -->
128                         <int>0x00AD</int>       <!-- SOFT HYPHEN -->
129                         <int>0x034F</int>       <!-- COMBINING GRAPHEME JOINER -->
130                         <int>0x0600</int>       <!-- ARABIC NUMBER SIGN -->
131                         <int>0x0601</int>       <!-- ARABIC SIGN SANAH -->
132                         <int>0x0602</int>       <!-- ARABIC FOOTNOTE MARKER -->
133                         <int>0x0603</int>       <!-- ARABIC SIGN SAFHA -->
134                         <int>0x06DD</int>       <!-- ARABIC END OF AYAH -->
135                         <int>0x070F</int>       <!-- SYRIAC ABBREVIATION MARK -->
136                         <int>0x115F</int>       <!-- HANGUL CHOSEONG FILLER -->
137                         <int>0x1160</int>       <!-- HANGUL JUNGSEONG FILLER -->
138                         <int>0x1680</int>       <!-- OGHAM SPACE MARK -->
139                         <int>0x17B4</int>       <!-- KHMER VOWEL INHERENT AQ -->
140                         <int>0x17B5</int>       <!-- KHMER VOWEL INHERENT AA -->
141                         <int>0x180E</int>       <!-- MONGOLIAN VOWEL SEPARATOR -->
142                         <int>0x2000</int>       <!-- EN QUAD -->
143                         <int>0x2001</int>       <!-- EM QUAD -->
144                         <int>0x2002</int>       <!-- EN SPACE -->
145                         <int>0x2003</int>       <!-- EM SPACE -->
146                         <int>0x2004</int>       <!-- THREE-PER-EM SPACE -->
147                         <int>0x2005</int>       <!-- FOUR-PER-EM SPACE -->
148                         <int>0x2006</int>       <!-- SIX-PER-EM SPACE -->
149                         <int>0x2007</int>       <!-- FIGURE SPACE -->
150                         <int>0x2008</int>       <!-- PUNCTUATION SPACE -->
151                         <int>0x2009</int>       <!-- THIN SPACE -->
152                         <int>0x200A</int>       <!-- HAIR SPACE -->
153                         <int>0x200B</int>       <!-- ZERO WIDTH SPACE -->
154                         <int>0x200C</int>       <!-- ZERO WIDTH NON-JOINER -->
155                         <int>0x200D</int>       <!-- ZERO WIDTH JOINER -->
156                         <int>0x200E</int>       <!-- LEFT-TO-RIGHT MARK -->
157                         <int>0x200F</int>       <!-- RIGHT-TO-LEFT MARK -->
158                         <int>0x2028</int>       <!-- LINE SEPARATOR -->
159                         <int>0x2029</int>       <!-- PARAGRAPH SEPARATOR -->
160                         <int>0x202A</int>       <!-- LEFT-TO-RIGHT EMBEDDING -->
161                         <int>0x202B</int>       <!-- RIGHT-TO-LEFT EMBEDDING -->
162                         <int>0x202C</int>       <!-- POP DIRECTIONAL FORMATTING -->
163                         <int>0x202D</int>       <!-- LEFT-TO-RIGHT OVERRIDE -->
164                         <int>0x202E</int>       <!-- RIGHT-TO-LEFT OVERRIDE -->
165                         <int>0x202F</int>       <!-- NARROW NO-BREAK SPACE -->
166                         <int>0x205F</int>       <!-- MEDIUM MATHEMATICAL SPACE -->
167                         <int>0x2060</int>       <!-- WORD JOINER -->
168                         <int>0x2061</int>       <!-- FUNCTION APPLICATION -->
169                         <int>0x2062</int>       <!-- INVISIBLE TIMES -->
170                         <int>0x2063</int>       <!-- INVISIBLE SEPARATOR -->
171                         <int>0x206A</int>       <!-- INHIBIT SYMMETRIC SWAPPING -->
172                         <int>0x206B</int>       <!-- ACTIVATE SYMMETRIC SWAPPING -->
173                         <int>0x206C</int>       <!-- INHIBIT ARABIC FORM SHAPING -->
174                         <int>0x206D</int>       <!-- ACTIVATE ARABIC FORM SHAPING -->
175                         <int>0x206E</int>       <!-- NATIONAL DIGIT SHAPES -->
176                         <int>0x206F</int>       <!-- NOMINAL DIGIT SHAPES -->
177                         <int>0x2800</int>       <!-- BRAILLE PATTERN BLANK -->
178                         <int>0x3000</int>       <!-- IDEOGRAPHIC SPACE -->
179                         <int>0x3164</int>       <!-- HANGUL FILLER -->
180                         <int>0xFEFF</int>       <!-- ZERO WIDTH NO-BREAK SPACE -->
181                         <int>0xFFA0</int>       <!-- HALFWIDTH HANGUL FILLER -->
182                         <int>0xFFF9</int>       <!-- INTERLINEAR ANNOTATION ANCHOR -->
183                         <int>0xFFFA</int>       <!-- INTERLINEAR ANNOTATION SEPARATOR -->
184                         <int>0xFFFB</int>       <!-- INTERLINEAR ANNOTATION TERMINATOR -->
185                 </blank>
186 <!--
187   Rescan configuration every 30 seconds when FcFontSetList is called
188  -->
189                 <rescan>
190                         <int>30</int>
191                 </rescan>
192         </config>
193
194 </fontconfig>
195 EOF