gtk-zip.sh.in 1.82 KB
Newer Older
Tor Lillqvist's avatar
Tor Lillqvist committed
1 2
#!/bin/sh

3
# Build zipfiles for GTK on Win32
Tor Lillqvist's avatar
Tor Lillqvist committed
4

5 6
ZIP=/tmp/gtk+-@GTK_VERSION@.zip
DEVZIP=/tmp/gtk+-dev-@GTK_VERSION@.zip
7
cd @prefix@
8

9 10 11 12 13 14 15
mkdir -p share/doc/gtk+-@GTK_VERSION@
cp -p @abs_srcdir@/COPYING share/doc/gtk+-@GTK_VERSION@

mkdir -p share/doc/gtk+-dev-@GTK_VERSION@
cp -p @abs_srcdir@/COPYING share/doc/gtk+-dev-@GTK_VERSION@

rm $ZIP
16
zip $ZIP -@ <<EOF
Tor Lillqvist's avatar
Tor Lillqvist committed
17
COPYING.LIB-2
18 19
etc/gtk-2.0/gdk-pixbuf.loaders
etc/gtk-2.0/gtkrc
20
etc/gtk-2.0/gtk.immodules
21 22 23
bin/libgdk_pixbuf-@GTK_API_VERSION@-@LT_CURRENT_MINUS_AGE@.dll
bin/libgdk-win32-@GTK_API_VERSION@-@LT_CURRENT_MINUS_AGE@.dll
bin/libgtk-win32-@GTK_API_VERSION@-@LT_CURRENT_MINUS_AGE@.dll
24 25
bin/gdk-pixbuf-query-loaders.exe
bin/gtk-query-immodules-2.0.exe
26 27
EOF

28
zip $ZIP lib/gtk-2.0/@GTK_BINARY_VERSION@/loaders/*.dll lib/gtk-2.0/@GTK_BINARY_VERSION@/immodules/*.dll lib/gtk-2.0/@GTK_BINARY_VERSION@/engines/*.dll
29

30
zip $ZIP share/themes/Raleigh/gtk-2.0/gtkrc
31 32
zip $ZIP share/themes/Default/gtk-2.0-key/gtkrc
zip $ZIP share/themes/Emacs/gtk-2.0-key/gtkrc
33
zip $ZIP share/themes/MS-Windows/gtk-2.0/gtkrc
34

35 36
zip $ZIP lib/locale/*/LC_MESSAGES/gtk20.mo
zip $ZIP lib/locale/*/LC_MESSAGES/gtk20-properties.mo
37

38 39
zip $ZIP share/doc/gtk+-@GTK_VERSION@

40 41 42
rm $DEVZIP
zip -r $DEVZIP -@ <<EOF
include/gtk-2.0
43
bin/gdk-pixbuf-csource.exe
Tor Lillqvist's avatar
Tor Lillqvist committed
44
bin/gtk-demo.exe
45
man/man1/gdk-pixbuf-csource.1
46 47 48 49 50 51
lib/libgdk_pixbuf-@GTK_API_VERSION@.dll.a
lib/gdk_pixbuf-@GTK_API_VERSION@.lib
lib/libgdk-win32-@GTK_API_VERSION@.dll.a
lib/gdk-win32-@GTK_API_VERSION@.lib
lib/libgtk-win32-@GTK_API_VERSION@.dll.a
lib/gtk-win32-@GTK_API_VERSION@.lib
52
lib/gtk-2.0/include
Tor Lillqvist's avatar
Tor Lillqvist committed
53 54
lib/pkgconfig/gdk-pixbuf-2.0.pc
lib/pkgconfig/gdk-2.0.pc
55
lib/pkgconfig/gdk-win32-2.0.pc
Tor Lillqvist's avatar
Tor Lillqvist committed
56
lib/pkgconfig/gtk+-2.0.pc
57 58
lib/pkgconfig/gtk+-win32-2.0.pc
share/aclocal/gtk-2.0.m4
Tor Lillqvist's avatar
Tor Lillqvist committed
59
share/gtk-2.0
60 61 62
share/gtk-doc/html/gdk-pixbuf
share/gtk-doc/html/gdk
share/gtk-doc/html/gtk
Tor Lillqvist's avatar
Tor Lillqvist committed
63 64
EOF

65
zip $DEVZIP share/doc/gtk+-dev-@GTK_VERSION@