gtk-zip.sh.in 2.03 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 8

SHORTAPIVERSION=`echo @GTK_API_VERSION@ | tr -d '.'`
9
APIVERSIONMAJOR=`echo @GTK_API_VERSION@ | sed -e 's/\..*//'`
10

11
cd @prefix@
12

13 14 15 16 17 18 19
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
20
zip $ZIP -@ <<EOF
21 22
etc/gtk-@GTK_API_VERSION@/gtkrc
etc/gtk-@GTK_API_VERSION@/im-multipress.conf
23 24
bin/libgdk-win32-@GTK_API_VERSION@-@LT_CURRENT_MINUS_AGE@.dll
bin/libgtk-win32-@GTK_API_VERSION@-@LT_CURRENT_MINUS_AGE@.dll
25
bin/libgailutil-@GTK_API_VERSION@-@GAIL_LT_CURRENT_MINUS_AGE@.dll
26
bin/gtk-query-immodules-@GTK_API_VERSION@.exe
27 28
lib/gtk-@GTK_API_VERSION@/3.0.0/loaders.cache
lib/gtk-@GTK_API_VERSION@/3.0.0/immodules.cache
29 30
EOF

31
zip $ZIP lib/gtk-@GTK_API_VERSION@/modules/libgail.dll lib/gtk-@GTK_API_VERSION@/@GTK_BINARY_VERSION@/loaders/*.dll lib/gtk-@GTK_API_VERSION@/@GTK_BINARY_VERSION@/immodules/*.dll lib/gtk-@GTK_API_VERSION@/@GTK_BINARY_VERSION@/engines/*.dll
32

33 34 35 36
zip $ZIP share/themes/Raleigh/gtk-@GTK_API_VERSION@/gtkrc
zip $ZIP share/themes/Default/gtk-@GTK_API_VERSION@-key/gtkrc
zip $ZIP share/themes/Emacs/gtk-@GTK_API_VERSION@-key/gtkrc
zip $ZIP share/themes/MS-Windows/gtk-@GTK_API_VERSION@/gtkrc
37

38 39
zip $ZIP share/locale/*/LC_MESSAGES/gtk${SHORTAPIVERSION}.mo
zip $ZIP share/locale/*/LC_MESSAGES/gtk${SHORTAPIVERSION}-properties.mo
40

41
zip -r -D $ZIP share/doc/gtk+-@GTK_VERSION@
42

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

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