home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / gnome-panel-data.postrm < prev    next >
Encoding:
Text File  |  2007-04-20  |  2.3 KB  |  70 lines

  1. #!/bin/sh
  2.  
  3. set -e
  4.  
  5. self="$(basename "$0")"
  6.  
  7. action="$1"
  8.  
  9. case "$action" in
  10.   remove)
  11.     rm -f /usr/share/gconf/defaults/05_panel-default-setup.entries
  12.     update-gconf-defaults
  13.   ;;
  14.   purge)
  15.     # FIXME I am probably a very old cleanup snippet, check whether you can
  16.     # remove me!
  17.     rm -rf /var/lib/gnome
  18.   ;;
  19.   upgrade|failed-upgrade|abort-install|abort-install|abort-upgrade|disappear)
  20.   ;;
  21.   *)
  22.     echo "$self: W: unknown action \`$action'" >&2
  23.   ;;
  24. esac
  25.  
  26. # Automatically added by dh_installmenu
  27. inst=/etc/menu-methods/gnome-panel-data
  28. if [ "$1" = "remove" ] && [ -f "$inst" ]; then chmod a-x $inst ; fi
  29. if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
  30. # End automatically added section
  31. # Automatically added by dh_scrollkeeper
  32. if [ "$1" = "remove" ] && which scrollkeeper-update >/dev/null 2>&1; then
  33.     scrollkeeper-update -q
  34. fi
  35. # End automatically added section
  36. # Automatically added by dh_gconf
  37. if [ "$1" = purge ]; then
  38.     OLD_DIR=/etc/gconf/schemas
  39.     SCHEMA_FILES="panel-compatibility.schemas panel-global.schemas panel-general.schemas panel-toplevel.schemas panel-object.schemas clock.schemas fish.schemas workspace-switcher.schemas window-list.schemas "
  40.     if [ -d $OLD_DIR ]; then
  41.         for SCHEMA in $SCHEMA_FILES; do
  42.             rm -f $OLD_DIR/$SCHEMA
  43.         done
  44.         rmdir -p --ignore-fail-on-non-empty $OLD_DIR
  45.     fi
  46. fi
  47. # End automatically added section
  48. # Automatically added by dh_desktop
  49. if [ "$1" = "remove" ] && which update-desktop-database >/dev/null 2>&1 ; then
  50.     update-desktop-database -q
  51. fi
  52. # End automatically added section
  53. # Automatically added by dh_iconcache
  54. [ -d /usr/share/icons/hicolor ] && touch -m /usr/share/icons/hicolor || true
  55. if [ "$1" = "remove" ] && \
  56.    [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
  57.    [ -f /etc/gtk-2.0/gdk-pixbuf.loaders ]; then
  58.        if [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
  59.        [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
  60.            # we shouldn't bomb out, if gtk-update-icon-cache failes, 
  61.         # it's not important enough
  62.         gtk-update-icon-cache -q /usr/share/icons/hicolor || true;
  63.     else
  64.         # if the icon theme directory has no subdirs, we can remove the cache
  65.         rm -f /usr/share/icons/hicolor/icon-theme.cache || true;
  66.     fi
  67. fi
  68. # End automatically added section
  69.  
  70.