glib-zip.in 1.79 KB
Newer Older
1 2
#!/bin/sh

Tor Lillqvist's avatar
Tor Lillqvist committed
3
# Build zipfiles for GLib on Win32: Separate runtime and developer ones.
4 5
# After running make install, run this.

Tor Lillqvist's avatar
Tor Lillqvist committed
6 7 8 9
ZIP=/tmp/glib-@GLIB_VERSION@.zip
DEVZIP=/tmp/glib-dev-@GLIB_VERSION@.zip

cd @prefix@
10

11 12 13 14 15
mkdir -p share/doc/glib-@GLIB_VERSION@
cp -p @abs_srcdir@/COPYING share/doc/glib-@GLIB_VERSION@

mkdir -p share/doc/glib-dev-@GLIB_VERSION@
cp -p @abs_srcdir@/COPYING share/doc/glib-dev-@GLIB_VERSION@
16

17 18 19 20 21 22
if test @LIB_EXE_MACHINE_FLAG@ = X64; then
  helperbits=64
else
  helperbits=32
fi

23
rm $ZIP
24
zip $ZIP -@ <<EOF
25 26
bin/gspawn-win${helperbits}-helper.exe
bin/gspawn-win${helperbits}-helper-console.exe
27
bin/libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll
28
bin/libgio-2.0-@LT_CURRENT_MINUS_AGE@.dll
29 30 31
bin/libgmodule-2.0-@LT_CURRENT_MINUS_AGE@.dll
bin/libgobject-2.0-@LT_CURRENT_MINUS_AGE@.dll
bin/libgthread-2.0-@LT_CURRENT_MINUS_AGE@.dll
Tor Lillqvist's avatar
Tor Lillqvist committed
32 33
EOF

34
zip $ZIP share/locale/*/LC_MESSAGES/glib20.mo
Tor Lillqvist's avatar
Tor Lillqvist committed
35

36
zip -r -D $ZIP share/doc/glib-@GLIB_VERSION@
37

Tor Lillqvist's avatar
Tor Lillqvist committed
38
rm $DEVZIP
39
zip -r -D $DEVZIP -@ <<EOF
40 41 42 43 44
bin/glib-genmarshal.exe
bin/glib-gettextize
bin/glib-mkenums
bin/gobject-query.exe
include/glib-2.0
45 46
lib/libglib-2.0.dll.a
lib/glib-2.0.lib
47
lib/glib-2.0.def
48 49
lib/libgmodule-2.0.dll.a
lib/gmodule-2.0.lib
50
lib/gmodule-2.0.def
51 52
lib/libgobject-2.0.dll.a
lib/gobject-2.0.lib
53
lib/gobject-2.0.def
54 55
lib/libgthread-2.0.dll.a
lib/gthread-2.0.lib
56
lib/gthread-2.0.def
57
lib/libgio-2.0.dll.a
58 59
lib/gio-2.0.lib
lib/gio-2.0.def
60 61 62
lib/glib-2.0
lib/pkgconfig/glib-2.0.pc
lib/pkgconfig/gmodule-2.0.pc
63
lib/pkgconfig/gmodule-no-export-2.0.pc
64 65
lib/pkgconfig/gobject-2.0.pc
lib/pkgconfig/gthread-2.0.pc
66
lib/pkgconfig/gio-2.0.pc
67
lib/pkgconfig/gio-windows-2.0.pc
68 69
share/aclocal/glib-2.0.m4
share/aclocal/glib-gettext.m4
Tor Lillqvist's avatar
Tor Lillqvist committed
70
share/glib-2.0
71
share/gtk-doc/html
72 73 74
share/man/man1/glib-mkenums.1
share/man/man1/glib-genmarshal.1
share/man/man1/gobject-query.1
75
EOF
76 77

zip -r $DEVZIP share/doc/glib-dev-@GLIB_VERSION@