blob: feb1d088378149d05e432502965450432a068fed (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
#!/bin/sh
# Build runtime and developer zipfiles for libcdr on Win32.
ZIP=libcdr-@CDR_VERSION@-MinGW.zip
DEVZIP=libcdr-devel-@CDR_VERSION@-MinGW.zip
TOOLSZIP=libcdr-tools-@CDR_VERSION@.zip
cd $DESTDIR@prefix@
DLLDIR=lib
[ -f bin/libcdr-@CDR_MAJOR_VERSION@.@CDR_MINOR_VERSION@.dll ] && \
DLLDIR=bin
@STRIP@ --strip-all \
$DLLDIR/libcdr-@CDR_MAJOR_VERSION@.@CDR_MINOR_VERSION@.dll \
bin/cdr2raw.exe \
bin/cdr2text.exe \
bin/cdr2xhtml.exe \
bin/cmx2raw.exe \
bin/cmx2text.exe \
bin/cmx2xhtml.exe
upx -qqq --best \
$DLLDIR/libcdr-@CDR_MAJOR_VERSION@.@CDR_MINOR_VERSION@.dll \
bin/cdr2raw.exe \
bin/cdr2text.exe \
bin/cdr2xhtml.exe \
bin/cmx2raw.exe \
bin/cmx2text.exe \
bin/cmx2xhtml.exe
rm -f $ZIP
zip -q -r $ZIP -@ <<EOF
$DLLDIR/libcdr-@CDR_MAJOR_VERSION@.@CDR_MINOR_VERSION@.dll
EOF
rm -f $DEVZIP
zip -q -r $DEVZIP -@ <<EOF
include/libcdr-@CDR_MAJOR_VERSION@.@CDR_MINOR_VERSION@
lib/libcdr-@CDR_MAJOR_VERSION@.@CDR_MINOR_VERSION@.dll.a
lib/libcdr-@CDR_MAJOR_VERSION@.@CDR_MINOR_VERSION@.a
lib/pkgconfig/libcdr-@CDR_MAJOR_VERSION@.@CDR_MINOR_VERSION@.pc
EOF
rm -f $TOOLSZIP
zip -q -r -j $TOOLSZIP -@ <<EOF
bin/cdr2raw.exe
bin/cdr2text.exe
bin/cdr2xhtml.exe
bin/cmx2raw.exe
bin/cmx2text.exe
bin/cmx2xhtml.exe
EOF
rm -f $TOOLSZIP
zip -q -r -j $TOOLSZIP -@ <<EOF
bin/cdr2raw.exe
bin/cdr2text.exe
bin/cdr2xhtml.exe
bin/cmx2raw.exe
bin/cmx2text.exe
bin/cmx2xhtml.exe
EOF
|