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 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
etc/gtk-2.0/im-multipress.conf
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
bin/libgailutil-@GAIL_LT_CURRENT_MINUS_AGE@.dll
25 26
bin/gdk-pixbuf-query-loaders.exe
bin/gtk-query-immodules-2.0.exe
27 28
EOF

29
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
30

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

36 37
zip $ZIP share/locale/*/LC_MESSAGES/gtk20.mo
zip $ZIP share/locale/*/LC_MESSAGES/gtk20-properties.mo
38

39
zip -r -D $ZIP share/doc/gtk+-@GTK_VERSION@
40

41
rm $DEVZIP
42
zip -r -D $DEVZIP -@ <<EOF
43
include/gtk-2.0
44
include/gail-1.0
45
bin/gdk-pixbuf-csource.exe
46
bin/gtk-builder-convert
Tor Lillqvist's avatar
Tor Lillqvist committed
47
bin/gtk-demo.exe
48
bin/gtk-update-icon-cache.exe
49
share/man
50 51 52 53 54 55
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
56 57
lib/libgailutil.dll.a
lib/gailutil.lib
58
lib/gtk-2.0/include
59 60
lib/pkgconfig
share/aclocal
Tor Lillqvist's avatar
Tor Lillqvist committed
61
share/gtk-2.0
62
share/gtk-doc
Tor Lillqvist's avatar
Tor Lillqvist committed
63 64
EOF

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