-
Notifications
You must be signed in to change notification settings - Fork 48
/
librsvg-zip.in
executable file
·38 lines (30 loc) · 1.06 KB
/
librsvg-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
#!/bin/sh
# Build distribution zipfiles for librsvg on Win32: Runtime,
# developer, engine and loader.
ZIP=/tmp/librsvg-@[email protected]
DEVZIP=/tmp/librsvg-dev-@[email protected]
ENGINEZIP=/tmp/svg-gtk-engine-@[email protected]
LOADERZIP=/tmp/svg-gdk-pixbuf-loader-@[email protected]
# The DLL name generated by libtool with the passed --version-info
DLLNAME=librsvg-2-@[email protected]
cd @prefix@
rm $ZIP
zip $ZIP -@ <<EOF
bin/$DLLNAME
EOF
rm $DEVZIP
zip -r -D $DEVZIP -@ <<EOF
bin/rsvg-convert.exe
bin/rsvg-view.exe
include/librsvg-2.0
lib/librsvg-2.dll.a
lib/pkgconfig/librsvg-2.0.pc
EOF
rm $ENGINEZIP
zip $ENGINEZIP lib/gtk-2.0/@GTK2_BINARY_VERSION@/engines/libsvg.dll
rm $LOADERZIP
mkdir -p lib/gdk-pixbuf-2.0/@gdk_pixbuf_binary_version@/loaders
mv @gdk_pixbuf_binarydir@/loaders/libpixbufloader-svg.dll lib/gdk-pixbuf-2.0/@gdk_pixbuf_binary_version@/loaders
rm -f @gdk_pixbuf_binarydir@/loaders/libpixbufloader-svg.dll.a
rm -f @gdk_pixbuf_binarydir@/loaders/libpixbufloader-svg.la
zip $LOADERZIP lib/gdk-pixbuf-2.0/@gdk_pixbuf_binary_version@/loaders/libpixbufloader-svg.dll