gtk-zip.sh.in 2.31 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 17 18
zip $ZIP -@ <<EOF
etc/gtk-2.0/gdk-pixbuf.loaders
etc/gtk-2.0/gtkrc
19
etc/gtk-2.0/gtk.immodules
20 21 22
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
23
bin/libgailutil-@GAIL_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/modules/libgail.dll 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
if [ -f share/locale/de/LC_MESSAGES/gtk20.mo ]; then
36 37
  zip -r $ZIP share/locale/*/LC_MESSAGES/gtk20.mo
  zip -r $ZIP share/locale/*/LC_MESSAGES/gtk20-properties.mo
38 39 40
else
  zip -r $ZIP lib/locale/*/LC_MESSAGES/gtk20.mo
  zip -r $ZIP lib/locale/*/LC_MESSAGES/gtk20-properties.mo
41
fi
42

Tor Lillqvist's avatar
Tor Lillqvist committed
43
zip -r $ZIP share/doc/gtk+-@GTK_VERSION@
44

45 46 47
rm $DEVZIP
zip -r $DEVZIP -@ <<EOF
include/gtk-2.0
48
include/gail-1.0
49
bin/gdk-pixbuf-csource.exe
50
bin/gtk-builder-convert
Tor Lillqvist's avatar
Tor Lillqvist committed
51
bin/gtk-demo.exe
52 53
bin/gtk-update-icon-cache.exe
man/man1/gdk-builder-convert.1
54
man/man1/gdk-pixbuf-csource.1
55 56 57
man/man1/gdk-update-icon-cache.1
man/man1/gtk-pixbuf-query-loaders.1
man/man1/gtk-query-immodules-2.0.1
58 59 60 61 62 63
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
64 65
lib/libgailutil.dll.a
lib/gailutil.lib
66
lib/gtk-2.0/include
Tor Lillqvist's avatar
Tor Lillqvist committed
67 68
lib/pkgconfig/gdk-pixbuf-2.0.pc
lib/pkgconfig/gdk-2.0.pc
69
lib/pkgconfig/gdk-win32-2.0.pc
Tor Lillqvist's avatar
Tor Lillqvist committed
70
lib/pkgconfig/gtk+-2.0.pc
71 72
lib/pkgconfig/gtk+-win32-2.0.pc
share/aclocal/gtk-2.0.m4
Tor Lillqvist's avatar
Tor Lillqvist committed
73
share/gtk-2.0
74 75 76
share/gtk-doc/html/gdk-pixbuf
share/gtk-doc/html/gdk
share/gtk-doc/html/gtk
Tor Lillqvist's avatar
Tor Lillqvist committed
77 78
EOF

Tor Lillqvist's avatar
Tor Lillqvist committed
79
zip -r $DEVZIP share/doc/gtk+-dev-@GTK_VERSION@