merge the formfield patch from ooo-build
[ooovba.git] / sysui / desktop / debian / postrm
blobadb9cf448e952c58cb418b7d37dd23c776b98a04
1 #!/bin/sh
2 # run always - both when upgrading as well as when erasing the package.
3 # Make sure this works when converted to .deb using alien.
4 if [ "$1" != "purge" ]; then
5 if [ -x /usr/bin/update-mime-database ]; then
6 update-mime-database /usr/share/mime
7 fi
8 if [ -x /usr/bin/update-desktop-database ]; then
9 update-desktop-database -q /usr/share/applications
11 if [ -x /usr/bin/update-menus ]; then
12 update-menus
14 for theme in gnome hicolor locolor; do
15 if [ -e /usr/share/icons/$theme/icon-theme.cache ] ; then
16 # touch it, just in case we cannot find the binary...
17 touch /usr/share/icons/$theme
18 if (which gtk-update-icon-cache); then
19 gtk-update-icon-cache /usr/share/icons/$theme
21 # ignore errors (e.g. when there is a cache, but no index.theme)
22 true
24 done
26 exit 0