More trash info
[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 rm $ZIP
18 zip $ZIP -@ <<EOF
19 bin/gspawn-win32-helper.exe
20 bin/gspawn-win32-helper-console.exe
21 bin/libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll
22 bin/libgio-2.0-@LT_CURRENT_MINUS_AGE@.dll
23 bin/libgmodule-2.0-@LT_CURRENT_MINUS_AGE@.dll
24 bin/libgobject-2.0-@LT_CURRENT_MINUS_AGE@.dll
25 bin/libgthread-2.0-@LT_CURRENT_MINUS_AGE@.dll
26 EOF
27
28 if [ -f lib/locale/de/LC_MESSAGES/glib20.mo -a -f share/locale/de/LC_MESSAGES/glib20.mo ]; then
29   if [ lib/locale/de/LC_MESSAGES/glib20.mo -nt share/locale/de/LC_MESSAGES/glib20.mo ]; then
30     zip -r $ZIP lib/locale/*/LC_MESSAGES/glib20.mo
31   else
32     zip -r $ZIP share/locale/*/LC_MESSAGES/glib20.mo
33   fi
34 elif [ -f lib/locale/de/LC_MESSAGES/glib20.mo ]; then
35   zip -r $ZIP lib/locale/*/LC_MESSAGES/glib20.mo
36 else
37   zip -r $ZIP share/locale/*/LC_MESSAGES/glib20.mo
38 fi
39
40 zip -r $ZIP share/doc/glib-@GLIB_VERSION@
41
42 rm $DEVZIP
43 zip -r $DEVZIP -@ <<EOF
44 bin/glib-genmarshal.exe
45 bin/glib-gettextize
46 bin/glib-mkenums
47 bin/gobject-query.exe
48 include/glib-2.0
49 lib/libglib-2.0.dll.a
50 lib/glib-2.0.lib
51 lib/glib-2.0.def
52 lib/libgmodule-2.0.dll.a
53 lib/gmodule-2.0.lib
54 lib/gmodule-2.0.def
55 lib/libgobject-2.0.dll.a
56 lib/gobject-2.0.lib
57 lib/gobject-2.0.def
58 lib/libgthread-2.0.dll.a
59 lib/gthread-2.0.lib
60 lib/gthread-2.0.def
61 lib/glib-2.0
62 lib/pkgconfig/glib-2.0.pc
63 lib/pkgconfig/gmodule-2.0.pc
64 lib/pkgconfig/gmodule-no-export-2.0.pc
65 lib/pkgconfig/gobject-2.0.pc
66 lib/pkgconfig/gthread-2.0.pc
67 share/aclocal/glib-2.0.m4
68 share/aclocal/glib-gettext.m4
69 share/glib-2.0
70 share/gtk-doc/html/glib
71 share/gtk-doc/html/gobject
72 man/man1/glib-mkenums.1
73 man/man1/glib-genmarshal.1
74 EOF
75
76 zip -r $DEVZIP share/doc/glib-dev-@GLIB_VERSION@