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

bindir="$1"
libdir="$2"
binary_version="$3"

if [ -z "$DESTDIR" ]; then
        mkdir -p "$libdir/gdk-pixbuf-2.0/$binary_version"
        $bindir/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