gtk-zip.sh.in 1.46 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 17
etc/gtk-2.0/gdk-pixbuf.loaders
etc/gtk-2.0/gtkrc
etc/gtk-2.0/gtk.immodues
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
zip $ZIP share/themes/{Default,Emacs}/gtk-2.0{,-key}/gtkrc
26

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

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