forked from fosnola/libstaroffice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libstaroffice-zip.in
45 lines (36 loc) · 1.22 KB
/
libstaroffice-zip.in
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
#!/bin/sh
# Build runtime and developer zipfiles for libstaroffice on Win32.
ZIP=libstaroffice-@[email protected]
DEVZIP=libstaroffice-devel-@[email protected]
TOOLSZIP=libstaroffice-tools-@[email protected]
cd $DESTDIR@prefix@
DLLDIR=lib
[ -f bin/libstaroffice-@STAROFFICE_MAJOR_VERSION@.@[email protected] ] && \
DLLDIR=bin
@STRIP@ --strip-all \
$DLLDIR/libstaroffice-@STAROFFICE_MAJOR_VERSION@.@[email protected] \
bin/sdw2html.exe \
bin/sdw2raw.exe \
bin/sdw2text.exe
upx -qqq --best \
$DLLDIR/libstaroffice-@STAROFFICE_MAJOR_VERSION@.@[email protected] \
bin/sdw2html.exe \
bin/sdw2raw.exe \
bin/sdw2text.exe
rm $ZIP
zip -q $ZIP -@ <<EOF
$DLLDIR/libstaroffice-@STAROFFICE_MAJOR_VERSION@.@[email protected]
EOF
rm $DEVZIP
zip -q -r $DEVZIP -@ <<EOF
include/libstaroffice-@STAROFFICE_MAJOR_VERSION@.@STAROFFICE_MINOR_VERSION@
lib/libstaroffice-@STAROFFICE_MAJOR_VERSION@.@[email protected]
lib/libstaroffice-@STAROFFICE_MAJOR_VERSION@.@[email protected]
lib/pkgconfig/libstaroffice-@STAROFFICE_MAJOR_VERSION@.@[email protected]
EOF
rm $TOOLSZIP
zip -q -j $TOOLSZIP -@ <<EOF
bin/sdw2html.exe
bin/sdw2raw.exe
bin/sdw2text.exe
EOF