aboutsummaryrefslogtreecommitdiffstats
path: root/packages/cortexa57-poky-linux/gdk-pixbuf/gdk-pixbuf-loader-xpm/latest.pkg_postinst
blob: d04191d008016197747345d74e7412ca38c516a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
set -e
if [ "x$D" != "x" ]; then
	$INTERCEPT_DIR/postinst_intercept update_pixbuf_cache libgdk-pixbuf-2.0-loader-xpm mlprefix= binprefix= libdir=/usr/lib \
		bindir=/usr/bin base_libdir=/lib
else

	# Update the pixbuf loaders in case they haven't been registered yet
	/usr/lib/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache

	if [ -x /usr/bin/gtk-update-icon-cache ] && [ -d /usr/share/icons ]; then
		for icondir in /usr/share/icons/*; do
			if [ -d ${icondir} ]; then
				gtk-update-icon-cache -t -q ${icondir}
			fi
		done
	fi
fi