3 # Updates GTK+ gdk pixbuf modules file with gdk-pixbuf-query-loaders(1).
5 # Arguments: $ACTION = [run/targets]
6 # $TARGET = [post-install/post-remove]
17 pixbuf_bin
=usr
/bin
/gdk-pixbuf-query-loaders
18 pixbuf_loaders
=etc
/gtk-2.0
/gdk-pixbuf.loaders
22 echo "post-install post-remove"
25 if [ "$TARGET" = "post-remove" -a "${PKGNAME}" = "gtk+" ]; then
26 [ -f ${pixbuf_loaders} ] && rm -f ${pixbuf_loaders}
31 if [ -x ${pixbuf_bin} ]; then
32 echo "Updating GTK's pixbuf modules file..."
33 ${pixbuf_bin} > ${pixbuf_loaders}