#!/bin/sh

# Build distribution zipfiles for libcroco on Win32: Runtime and
# developer.

ZIP=/tmp/libcroco-0.6.15.zip
DEVZIP=/tmp/libcroco-dev-0.6.15.zip

# The DLL name generated by libtool with the passed --version-info
DLLNAME=libcroco-0.6-`expr 3 - 0`.dll

cd /tmp/librsvg-rebuild-prefix
rm $ZIP

zip $ZIP -@ <<EOF
bin/$DLLNAME
EOF

rm $DEVZIP
zip -r $DEVZIP -@ <<EOF
bin/csslint-0.6.exe
include/libcroco-0.6
lib/libcroco-0.6.dll.a
lib/pkgconfig/libcroco-0.6.pc
EOF
