gtk-zip.sh.in 1.54 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 7
ZIP=/tmp/gtk+-@GTK_VERSION@-`date +%Y%m%d`.zip
DEVZIP=/tmp/gtk+-dev-@GTK_VERSION@-`date +%Y%m%d`.zip
cd @prefix@
Tor Lillqvist's avatar
Tor Lillqvist committed
8
rm $ZIP
9 10 11 12

DLLDIR=lib
[ -f bin/libgdk_pixbuf-@GTK_API_VERSION@-@LT_CURRENT_MINUS_AGE@.dll ] && DLLDIR=bin

13
zip $ZIP -@ <<EOF
Tor Lillqvist's avatar
Tor Lillqvist committed
14
COPYING.LIB-2
15 16
etc/gtk-2.0/gdk-pixbuf.loaders
etc/gtk-2.0/gtkrc
17
etc/gtk-2.0/gtk.immodules
18 19 20
$DLLDIR/libgdk_pixbuf-@GTK_API_VERSION@-@LT_CURRENT_MINUS_AGE@.dll
$DLLDIR/libgdk-win32-@GTK_API_VERSION@-@LT_CURRENT_MINUS_AGE@.dll
$DLLDIR/libgtk-win32-@GTK_API_VERSION@-@LT_CURRENT_MINUS_AGE@.dll
21 22
EOF

23
zip $ZIP lib/gtk-2.0/@GTK_BINARY_VERSION@/loaders/*.dll lib/gtk-2.0/@GTK_BINARY_VERSION@/immodules/*.dll
24

25 26 27
zip $ZIP share/themes/Default/gtk-2.0/gtkrc
zip $ZIP share/themes/Default/gtk-2.0-key/gtkrc
zip $ZIP share/themes/Emacs/gtk-2.0-key/gtkrc
28

29 30 31 32 33
zip -r $ZIP lib/locale/*/LC_MESSAGES/gtk20.mo

rm $DEVZIP
zip -r $DEVZIP -@ <<EOF
include/gtk-2.0
34
bin/gdk-pixbuf-csource.exe
35
bin/gdk-pixbuf-query-loaders.exe
Tor Lillqvist's avatar
Tor Lillqvist committed
36 37
bin/gtk-query-immodules-2.0.exe
bin/gtk-demo.exe
38
man/man1/gdk-pixbuf-csource.1
39 40 41 42 43 44
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
45
lib/gtk-2.0/include
Tor Lillqvist's avatar
Tor Lillqvist committed
46 47
lib/pkgconfig/gdk-pixbuf-2.0.pc
lib/pkgconfig/gdk-2.0.pc
48
lib/pkgconfig/gdk-win32-2.0.pc
Tor Lillqvist's avatar
Tor Lillqvist committed
49
lib/pkgconfig/gtk+-2.0.pc
50 51
lib/pkgconfig/gtk+-win32-2.0.pc
share/aclocal/gtk-2.0.m4
Tor Lillqvist's avatar
Tor Lillqvist committed
52
share/gtk-2.0
53 54 55
share/gtk-doc/html/gdk-pixbuf
share/gtk-doc/html/gdk
share/gtk-doc/html/gtk
Tor Lillqvist's avatar
Tor Lillqvist committed
56 57
EOF