summaryrefslogtreecommitdiff
path: root/build-aux/post-install.sh
blob: 40a47cb4afcdbb2f8d130a6c9021c62064c14ce9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

libdir="$1"
binary_version="$2"

if [ -z "$DESTDIR" ]; then
        mkdir -p "$libdir/gdk-pixbuf-2.0/$binary_version"
        gdk-pixbuf-query-loaders > "$libdir/gdk-pixbuf-2.0/$binary_version/loaders.cache"
else
        echo "***"
        echo "*** Warning: loaders.cache not built"
        echo "***"
        echo "*** You should generate this file manually on the host system"
        echo "*** using:"
        echo "***   gdk-pixbuf-query-loaders > $libdir/gdk-pixbuf-2.0/$binary_version/loaders.cache"
        echo "***"
fi