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