Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > 3c23a0ba834266bfe20730a797fa194a > scriptlet

iceape-2.49.4-2.mga7.i586.rpm

PREUN

/bin/sh
if [ "$1" = "0" ]; then
    /bin/rm -rf /usr/lib/iceape-2.49.4/chrome/overlayinfo
    /bin/rm -f /usr/lib/iceape-2.49.4/chrome/*.rdf
fi

POSTIN

/bin/sh
ulimit -c 0
# run ldconfig before regxpcom
/sbin/ldconfig >/dev/null 2>/dev/null

# we should only rebuild database for first install
# rebuild for update is done in postun
# but it seems we need we might need to do it twince
if [ -x /usr/lib/iceape-2.49.4/iceape-rebuild-databases.pl ]; then
    /usr/lib/iceape-2.49.4/iceape-rebuild-databases.pl
fi

# Default to paper size from locale setting
case `LC_ALL=$LC_MESSAGES /usr/bin/locale -k LC_PAPER | grep width` in
*216) paper="letter";;
*) paper="a4";;
esac
#perl -pi -e "s/^(pref\(\"print.postscript.paper_size\",[^\"]+)\"[a-z0-9]+\"/\1\"$paper\"/" \
#  /usr/lib/iceape-2.49.4/greprefs/all.js

POSTUN

/bin/sh
# was this an upgrade?
if [ "$1" == "2" -a -x /usr/lib/iceape-2.49.4/iceape-rebuild-databases.pl ]; then
    /usr/lib/iceape-2.49.4/iceape-rebuild-databases.pl
fi