librsvg-zip.in 1.06 KB
Newer Older
Tor Lillqvist's avatar
Tor Lillqvist committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/sh

# Build distribution zipfiles for librsvg on Win32: Runtime,
# developer, engine and loader.

ZIP=/tmp/librsvg-@VERSION@.zip
DEVZIP=/tmp/librsvg-dev-@VERSION@.zip
ENGINEZIP=/tmp/svg-gtk-engine-@VERSION@.zip
LOADERZIP=/tmp/svg-gdk-pixbuf-loader-@VERSION@.zip

# The DLL name generated by libtool with the passed --version-info
DLLNAME=librsvg-2-@LIBRSVG_MAJOR_VERSION@.dll

cd @prefix@
rm $ZIP

zip $ZIP -@ <<EOF
18
bin/$DLLNAME
Tor Lillqvist's avatar
Tor Lillqvist committed
19 20 21
EOF

rm $DEVZIP
22 23
zip -r -D $DEVZIP -@ <<EOF
bin/rsvg-convert.exe
24
bin/rsvg-view.exe
25
include/librsvg-2.0
Tor Lillqvist's avatar
Tor Lillqvist committed
26 27 28 29 30
lib/librsvg-2.dll.a
lib/pkgconfig/librsvg-2.0.pc
EOF

rm $ENGINEZIP
31
zip $ENGINEZIP lib/gtk-2.0/@GTK2_BINARY_VERSION@/engines/libsvg.dll
Tor Lillqvist's avatar
Tor Lillqvist committed
32 33

rm $LOADERZIP
34 35 36 37 38
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