blob: 3b337ad3f01095e4926f7fc00e8007664ca65a7c (
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#!/bin/sh
# Build runtime and developer zipfiles for libvisio on Win32.
ZIP=libvisio-@VSD_VERSION@-MinGW.zip
DEVZIP=libvisio-devel-@VSD_VERSION@-MinGW.zip
TOOLSZIP=libvisio-tools-@VSD_VERSION@.zip
cd $DESTDIR@prefix@
DLLDIR=lib
[ -f bin/libvisio-@VSD_MAJOR_VERSION@.@VSD_MINOR_VERSION@.dll ] && \
DLLDIR=bin
@STRIP@ --strip-unneeded \
$DLLDIR/libvisio-@VSD_MAJOR_VERSION@.@VSD_MINOR_VERSION@.dll
@STRIP@ --strip-all \
bin/vsd2raw.exe \
bin/vsd2xhtml.exe
upx -qqq --best \
$DLLDIR/libvisio-@VSD_MAJOR_VERSION@.@VSD_MINOR_VERSION@.dll \
bin/vsd2raw.exe \
bin/vsd2xhtml.exe
rm -f $ZIP
zip -q -r $ZIP -@ <<EOF
$DLLDIR/libvisio-@VSD_MAJOR_VERSION@.@VSD_MINOR_VERSION@.dll
EOF
rm -f $DEVZIP
zip -q -r $DEVZIP -@ <<EOF
include/libvisio-@VSD_MAJOR_VERSION@.@VSD_MINOR_VERSION@
lib/libvisio-@VSD_MAJOR_VERSION@.@VSD_MINOR_VERSION@.dll.a
lib/libvisio-@VSD_MAJOR_VERSION@.@VSD_MINOR_VERSION@.a
lib/pkgconfig/libvisio-@VSD_MAJOR_VERSION@.@VSD_MINOR_VERSION@.pc
EOF
rm -f $TOOLSZIP
zip -q -r -j $TOOLSZIP -@ <<EOF
bin/vsd2raw.exe
bin/vsd2xhtml.exe
EOF
|