Sophie

Sophie

distrib > Mandriva > 2011.0 > x86_64 > media > main-release > by-pkgid > 052ad2756c27739fa46ad946c30e8f73 > scriptlet

mozilla-thunderbird-5.0-3.x86_64.rpm

PREIN

/bin/sh
if [ $1 == 2 ]; then
  if [ -d /usr/lib64/thunderbird-5.0/dictionaries ]; then
    # Otherelse rpm can't switch this into a symlink :(
    rm -rf /usr/lib64/thunderbird-5.0/dictionaries
  fi
fi

POSTIN

/bin/sh
/usr/bin/update-desktop-database /usr/share/applications

#/usr/share/rpm-helper/create-file mozilla-thunderbird $1 /usr/lib64/thunderbird-5.0/chrome/app-chrome.manifest root root 644 
#/usr/share/rpm-helper/create-file mozilla-thunderbird $1 /usr/lib64/thunderbird-5.0/components/compreg.dat root root 644 
#/usr/share/rpm-helper/create-file mozilla-thunderbird $1 /usr/lib64/thunderbird-5.0/components/xpti.dat root root 644 

#if [ -f /usr/lib64/thunderbird-5.0/components/compreg.dat ]; then
#    /bin/rm -f /usr/lib64/thunderbird-5.0/components/compreg.dat
#fi

#if [ -f /usr/lib64/thunderbird-5.0/components/xpti.dat ]; then
#    /bin/rm -f /usr/lib64/thunderbird-5.0/components/xpti.dat
#fi

mktemp="/bin/mktemp -d -q -p /tmp -t mozilla-thunderbird.XXXXXXXXXX"

TMPDIR= TB_TMPDIR=`$mktemp` && {
    HOME="$TB_TMPDIR" LD_LIBRARY_PATH="/usr/lib64/thunderbird-5.0" /usr/lib64/thunderbird-5.0/thunderbird-bin -nox -register
    test -d "$TB_TMPDIR" && /bin/rm -rf -- "$TB_TMPDIR"
}

if [ -x /usr/bin/gtk-update-icon-cache ]; then
 /usr/bin/gtk-update-icon-cache --force --quiet /usr/share/icons/hicolor
fi

POSTUN

/bin/sh
/usr/bin/update-desktop-database /usr/share/applications
if [ "$1" = "0" -a -x /usr/bin/gtk-update-icon-cache ]; then
  /usr/bin/gtk-update-icon-cache --force --quiet /usr/share/icons/hicolor
fi


#===============================================================================