summaryrefslogtreecommitdiff
path: root/atk-zip.sh.in
blob: 21242c0bcb00630b8c19ac5857eea42e375b85c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

# Build zipfiles for ATK on Win32

ZIP=/tmp/atk-@ATK_VERSION@-`date +%Y%m%d`.zip
DEVZIP=/tmp/atk-dev-@ATK_VERSION@-`date +%Y%m%d`.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 lib/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/pkgconfig/atk.pc
EOF