summaryrefslogtreecommitdiff
path: root/atk-zip.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'atk-zip.sh.in')
-rwxr-xr-xatk-zip.sh.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/atk-zip.sh.in b/atk-zip.sh.in
new file mode 100755
index 0000000..967f61d
--- /dev/null
+++ b/atk-zip.sh.in
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# Build zipfiles for ATK on Win32
+
+ZIP=/tmp/atk-@ATK_VERSION@.zip
+DEVZIP=/tmp/atk-dev-@ATK_VERSION@.zip
+
+cd @prefix@
+rm $ZIP
+
+DLLDIR=lib
+[ -f bin/libatk-@ATK_API_VERSION@-@LT_CURRENT_MINUS_AGE@.dll ] && DLLDIR=bin
+
+zip $ZIP -@ <<EOF
+$DLLDIR/libatk-@ATK_API_VERSION@-@LT_CURRENT_MINUS_AGE@.dll
+EOF
+
+zip $ZIP share/locale/*/LC_MESSAGES/atk10.mo
+
+rm $DEVZIP
+zip -r $DEVZIP -@ <<EOF
+include/atk-1.0
+lib/libatk-@ATK_API_VERSION@.dll.a
+lib/atk-@ATK_API_VERSION@.lib
+lib/atk-@ATK_API_VERSION@.def
+lib/pkgconfig/atk.pc
+EOF