POSTIN
/bin/sh
if [ -d /usr/lib/gimp ]; then GIMPDIR=`ls -d /usr/lib/gimp/[01]*` [ -z "$GIMPDIR" ] && exit 0 for i in $GIMPDIR;do [ -d $i/plug-ins ] || mkdir -p $i/plug-ins ln -s -f /usr/bin/xsane-gimp $i/plug-ins/xsane done fi
POSTUN
/bin/sh
if [ $1 = 0 ]; then if [ -d /usr/lib/gimp ]; then GIMPDIR=`ls -d /usr/lib/gimp/[01]*` [ -z "$GIMPDIR" ] && exit 0 for i in $GIMPDIR;do [ -d $i/plug-ins ] || mkdir -p $i/plug-ins /bin/rm -f $i/plug-ins/xsane done fi fi