#!/bin/sh

# Build runtime and developer zipfiles for libgsf on Win32.

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

cd @prefix@
rm $ZIP

DLLDIR=lib
[ -f bin/libgsf-1-@LIBGSF_MAJOR_VERSION@.dll ] && DLLDIR=bin

zip $ZIP -@ <<EOF
$DLLDIR/libgsf-1-@LIBGSF_MAJOR_VERSION@.dll
EOF

rm $DEVZIP
zip -r $DEVZIP -@ <<EOF
include/libgsf-1
lib/liblibgsf-1.dll.a
lib/pkgconfig/libgsf-1.pc
EOF
