mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-02 15:46:17 +01:00
007d3ad28a
2007-11-27 Tor Lillqvist <tml@novell.com> * glib/gutils.c (_glib_get_locale_dir) [Win32]: Use either lib/locale or share/locale depending on which one is in GLIB_LOCALE_DIR. When the configury recognizes GNU gettext (based on the _nl_msg_cat_cntr variable, eek), share/locale gets used. * glib-zip.in: Likewise, look for message catalogs either in lib/locale or share/locale. svn path=/trunk/; revision=5944
76 lines
1.9 KiB
Bash
Executable File
76 lines
1.9 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
# Build zipfiles for GLib on Win32: Separate runtime and developer ones.
|
|
# After running make install, run this.
|
|
|
|
ZIP=/tmp/glib-@GLIB_VERSION@.zip
|
|
DEVZIP=/tmp/glib-dev-@GLIB_VERSION@.zip
|
|
|
|
cd @prefix@
|
|
|
|
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@
|
|
|
|
rm $ZIP
|
|
zip $ZIP -@ <<EOF
|
|
bin/gspawn-win32-helper.exe
|
|
bin/gspawn-win32-helper-console.exe
|
|
bin/libglib-2.0-@LT_CURRENT_MINUS_AGE@.dll
|
|
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
|
|
EOF
|
|
|
|
if [ -f lib/locale/de/LC_MESSAGES/glib20.mo -a -f share/locale/de/LC_MESSAGES/glib20.mo ]; then
|
|
if [ lib/locale/de/LC_MESSAGES/glib20.mo -nt share/locale/de/LC_MESSAGES/glib20.mo ]; then
|
|
zip -r $ZIP lib/locale/*/LC_MESSAGES/glib20.mo
|
|
else
|
|
zip -r $ZIP share/locale/*/LC_MESSAGES/glib20.mo
|
|
fi
|
|
elif [ -f lib/locale/de/LC_MESSAGES/glib20.mo ]; then
|
|
zip -r $ZIP lib/locale/*/LC_MESSAGES/glib20.mo
|
|
else
|
|
zip -r $ZIP share/locale/*/LC_MESSAGES/glib20.mo
|
|
fi
|
|
|
|
zip -r $ZIP share/doc/glib-@GLIB_VERSION@
|
|
|
|
rm $DEVZIP
|
|
zip -r $DEVZIP -@ <<EOF
|
|
bin/glib-genmarshal.exe
|
|
bin/glib-gettextize
|
|
bin/glib-mkenums
|
|
bin/gobject-query.exe
|
|
include/glib-2.0
|
|
lib/libglib-2.0.dll.a
|
|
lib/glib-2.0.lib
|
|
lib/glib-2.0.def
|
|
lib/libgmodule-2.0.dll.a
|
|
lib/gmodule-2.0.lib
|
|
lib/gmodule-2.0.def
|
|
lib/libgobject-2.0.dll.a
|
|
lib/gobject-2.0.lib
|
|
lib/gobject-2.0.def
|
|
lib/libgthread-2.0.dll.a
|
|
lib/gthread-2.0.lib
|
|
lib/gthread-2.0.def
|
|
lib/glib-2.0
|
|
lib/pkgconfig/glib-2.0.pc
|
|
lib/pkgconfig/gmodule-2.0.pc
|
|
lib/pkgconfig/gmodule-no-export-2.0.pc
|
|
lib/pkgconfig/gobject-2.0.pc
|
|
lib/pkgconfig/gthread-2.0.pc
|
|
share/aclocal/glib-2.0.m4
|
|
share/aclocal/glib-gettext.m4
|
|
share/glib-2.0
|
|
share/gtk-doc/html/glib
|
|
share/gtk-doc/html/gobject
|
|
man/man1/glib-mkenums.1
|
|
man/man1/glib-genmarshal.1
|
|
EOF
|
|
|
|
zip -r $DEVZIP share/doc/glib-dev-@GLIB_VERSION@
|