File: libwps-zip.in

package info (click to toggle)
libwps 0.2.7-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 2,540 kB
  • sloc: cpp: 13,000; sh: 11,083; makefile: 274
file content (45 lines) | stat: -rw-r--r-- 1,036 bytes parent folder | download | duplicates (7)
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 libwps on Win32.

ZIP=libwps-@WPS_VERSION@-MinGW.zip
DEVZIP=libwps-devel-@WPS_VERSION@-MinGW.zip
TOOLSZIP=libwps-tools-@WPS_VERSION@.zip

cd $DESTDIR@prefix@

DLLDIR=lib
[ -f bin/libwps-@WPS_MAJOR_VERSION@.@WPS_MINOR_VERSION@.dll ] && \
DLLDIR=bin

@STRIP@ --strip-all \
$DLLDIR/libwps-@WPS_MAJOR_VERSION@.@WPS_MINOR_VERSION@.dll \
bin/wps2html.exe \
bin/wps2raw.exe \
bin/wps2text.exe

upx -qqq --best \
$DLLDIR/libwps-@WPS_MAJOR_VERSION@.@WPS_MINOR_VERSION@.dll \
bin/wps2html.exe \
bin/wps2raw.exe \
bin/wps2text.exe

rm $ZIP
zip -q $ZIP -@ <<EOF
$DLLDIR/libwps-@WPS_MAJOR_VERSION@.@WPS_MINOR_VERSION@.dll
EOF

rm $DEVZIP
zip -q -r $DEVZIP -@ <<EOF
include/libwps-@WPS_MAJOR_VERSION@.@WPS_MINOR_VERSION@
lib/libwps-@WPS_MAJOR_VERSION@.@WPS_MINOR_VERSION@.dll.a
lib/libwps-@WPS_MAJOR_VERSION@.@WPS_MINOR_VERSION@.a
lib/pkgconfig/libwps-@WPS_MAJOR_VERSION@.@WPS_MINOR_VERSION@.pc
EOF

rm $TOOLSZIP
zip -q -j $TOOLSZIP -@ <<EOF
bin/wps2html.exe
bin/wps2raw.exe
bin/wps2text.exe
EOF