1#!/bin/sh
2
3# Build zipfiles for GLib on Win32: Separate runtime and developer ones.
4# After running make install, run this.
5
6ZIP=/tmp/glib-@GLIB_VERSION@.zip
7DEVZIP=/tmp/glib-dev-@GLIB_VERSION@.zip
8
9cd @prefix@
10
11mkdir -p share/doc/glib-@GLIB_VERSION@
12cp -p @abs_srcdir@/COPYING share/doc/glib-@GLIB_VERSION@
13
14mkdir -p share/doc/glib-dev-@GLIB_VERSION@
15cp -p @abs_srcdir@/COPYING share/doc/glib-dev-@GLIB_VERSION@
16
17if test @LIB_EXE_MACHINE_FLAG@ = X64; then
18  helperbits=64
19else
20  helperbits=32
21fi
22
23rm $ZIP
24zip $ZIP -@ <<EOF
25bin/gspawn-win${helperbits}-helper.exe
26bin/gspawn-win${helperbits}-helper-console.exe
27bin/libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll
28bin/libgio-2.0-@LT_CURRENT_MINUS_AGE@.dll
29bin/libgmodule-2.0-@LT_CURRENT_MINUS_AGE@.dll
30bin/libgobject-2.0-@LT_CURRENT_MINUS_AGE@.dll
31bin/libgthread-2.0-@LT_CURRENT_MINUS_AGE@.dll
32EOF
33
34zip -r $ZIP share/locale/*/LC_MESSAGES/glib20.mo
35
36zip -r $ZIP share/doc/glib-@GLIB_VERSION@
37
38rm $DEVZIP
39zip -r $DEVZIP -@ <<EOF
40bin/glib-genmarshal.exe
41bin/glib-gettextize
42bin/glib-mkenums
43bin/gobject-query.exe
44include/glib-2.0
45lib/libglib-2.0.dll.a
46lib/glib-2.0.lib
47lib/glib-2.0.def
48lib/libgmodule-2.0.dll.a
49lib/gmodule-2.0.lib
50lib/gmodule-2.0.def
51lib/libgobject-2.0.dll.a
52lib/gobject-2.0.lib
53lib/gobject-2.0.def
54lib/libgthread-2.0.dll.a
55lib/gthread-2.0.lib
56lib/gthread-2.0.def
57lib/libgio-2.0.dll.a
58lib/gio-2.0.lib
59lib/gio-2.0.def
60lib/glib-2.0
61lib/pkgconfig/glib-2.0.pc
62lib/pkgconfig/gmodule-2.0.pc
63lib/pkgconfig/gmodule-no-export-2.0.pc
64lib/pkgconfig/gobject-2.0.pc
65lib/pkgconfig/gthread-2.0.pc
66lib/pkgconfig/gio-2.0.pc
67share/aclocal/glib-2.0.m4
68share/aclocal/glib-gettext.m4
69share/glib-2.0
70share/gtk-doc/html/glib
71share/gtk-doc/html/gobject
72share/man/man1/glib-mkenums.1
73share/man/man1/glib-genmarshal.1
74share/man/man1/gobject-query.1
75EOF
76
77zip -r $DEVZIP share/doc/glib-dev-@GLIB_VERSION@
78