Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 6330af17542d9012a5201bbb429b5013 > scriptlet

mozilla-thunderbird-2.0.0.14-2mdv2008.1.x86_64.rpm

PREIN

/bin/sh
if [ $1 == 2 ]; then
  if [ -d /usr/lib64/thunderbird-2.0.0.14/dictionaries ]; then
    # Otherelse rpm can't switch this into a symlink :(
    rm -rf /usr/lib64/thunderbird-2.0.0.14/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-2.0.0.14/chrome/app-chrome.manifest root root 644 
/usr/share/rpm-helper/create-file mozilla-thunderbird $1 /usr/lib64/thunderbird-2.0.0.14/components/compreg.dat root root 644 
/usr/share/rpm-helper/create-file mozilla-thunderbird $1 /usr/lib64/thunderbird-2.0.0.14/components/xpti.dat root root 644 

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

if [ -f /usr/lib64/thunderbird-2.0.0.14/components/xpti.dat ]; then
    /bin/rm -f /usr/lib64/thunderbird-2.0.0.14/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-2.0.0.14" /usr/lib64/thunderbird-2.0.0.14/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


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