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