]> git.xonotic.org Git - xonotic/netradiant.git/blob - install-dlls.sh
make it work with older Gtk again
[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         intl.dll \
14         libatk-1.0-0.dll \
15         libcairo-2.dll \
16         libgdk-win32-2.0-0.dll \
17         libgdk_pixbuf-2.0-0.dll \
18         libgdkglext-win32-1.0-0.dll \
19         libglib-2.0-0.dll \
20         libgmodule-2.0-0.dll \
21         libgobject-2.0-0.dll \
22         libgtk-win32-2.0-0.dll \
23         libgtkglext-win32-1.0-0.dll \
24         libpango-1.0-0.dll \
25         libpangocairo-1.0-0.dll \
26         libpangowin32-1.0-0.dll \
27         libpng12-0.dll \
28         libxml2-2.dll \
29         zlib1.dll \
30 ; do
31         $CP "`$WHICHDLL $DLL`" $INSTALLDIR/
32 done
33
34 $CP "$GTKDIR/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-bmp.dll" $INSTALLDIR/libgdk-win32-2.0-0-pixbufloader-bmp.dll
35 $MKDIR $INSTALLDIR/etc/gtk-2.0
36 $CAT > $INSTALLDIR/etc/gtk-2.0/gdk-pixbuf.loaders <<'EOF'
37 # GdkPixbuf Image Loader Modules file
38 #
39 #
40
41 "libgdk-win32-2.0-0-pixbufloader-bmp.dll"
42 "bmp" 5 "gtk20" "The BMP image format"
43 "image/bmp" "image/x-bmp" "image/x-MS-bmp" ""
44 "bmp" ""
45 "BM" "" 100
46
47 EOF