summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux')
-rw-r--r--build-aux/post-install.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/build-aux/post-install.sh b/build-aux/post-install.sh
new file mode 100644
index 000000000..40aab7422
--- /dev/null
+++ b/build-aux/post-install.sh
@@ -0,0 +1,17 @@
+#!/usr/bin/bash
+
+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