summaryrefslogtreecommitdiff
path: root/libcroco-zip.in
diff options
context:
space:
mode:
Diffstat (limited to 'libcroco-zip.in')
-rwxr-xr-xlibcroco-zip.in25
1 files changed, 25 insertions, 0 deletions
diff --git a/libcroco-zip.in b/libcroco-zip.in
new file mode 100755
index 0000000..5b6e2ee
--- /dev/null
+++ b/libcroco-zip.in
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+# Build distribution zipfiles for libcroco on Win32: Runtime and
+# developer.
+
+ZIP=/tmp/libcroco-@VERSION@.zip
+DEVZIP=/tmp/libcroco-dev-@VERSION@.zip
+
+# The DLL name generated by libtool with the passed --version-info
+DLLNAME=libcroco-@LIBCROCO_MAJOR_VERSION@.@LIBCROCO_MINOR_VERSION@-`expr @LIBCROCO_CURRENT@ - @LIBCROCO_AGE@`.dll
+
+cd @prefix@
+rm $ZIP
+
+zip $ZIP -@ <<EOF
+bin/$DLLNAME
+EOF
+
+rm $DEVZIP
+zip -r $DEVZIP -@ <<EOF
+bin/csslint-@LIBCROCO_MAJOR_VERSION@.@LIBCROCO_MINOR_VERSION@.exe
+include/libcroco-@LIBCROCO_MAJOR_VERSION@.@LIBCROCO_MINOR_VERSION@
+lib/libcroco-@LIBCROCO_MAJOR_VERSION@.@LIBCROCO_MINOR_VERSION@.dll.a
+lib/pkgconfig/libcroco-@LIBCROCO_MAJOR_VERSION@.@LIBCROCO_MINOR_VERSION@.pc
+EOF