#!/bin/sh

# Build zipfiles for libmatecanvas on Win32. Separate runtime and
# developer ones. Run after make install.

ZIP=/tmp/libmatecanvas-@VERSION@.zip
DEVZIP=/tmp/libmatecanvas-dev-@VERSION@.zip

cd @prefix@
rm $ZIP

zip $ZIP -@ <<EOF
bin/libmatecanvas-2-@LIBMATECANVAS_CURRENT_MINUS_AGE@.dll
lib/libglade/2.0/libgladematecanvas.dll
EOF

if [ -f share/locale/de/LC_MESSAGES/libmatecanvas-2.0.mo ]; then
  zip $ZIP share/locale/*/LC_MESSAGES/libmatecanvas-2.0.mo
else
  zip $ZIP lib/locale/*/LC_MESSAGES/libmatecanvas-2.0.mo
fi

rm $DEVZIP
zip -r $DEVZIP -@ <<EOF
lib/libmatecanvas-2.dll.a
lib/libglade/2.0/libgladematecanvas.dll.a
lib/pkgconfig/libmatecanvas-2.0.pc
include/libmatecanvas-2.0
share/gtk-doc/html/libmatecanvas
EOF
