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 / restricted-manager.postrm < prev    next >
Encoding:
Text File  |  2007-04-12  |  875 b   |  24 lines

  1. #!/bin/sh -e
  2.  
  3. if [ "$1" = remove ]; then
  4.     rm -fr /var/cache/restricted-manager
  5. fi
  6.  
  7. # Automatically added by dh_iconcache
  8. [ -d /usr/share/icons/hicolor ] && touch -m /usr/share/icons/hicolor || true
  9. if [ "$1" = "remove" ] && \
  10.    [ -x "`which gtk-update-icon-cache 2>/dev/null`" ] && \
  11.    [ -f /etc/gtk-2.0/gdk-pixbuf.loaders ]; then
  12.        if [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type d | wc -l`" -gt 0 ] && \
  13.        [ "`find /usr/share/icons/hicolor -mindepth 1 -maxdepth 1 -type f -name index.theme | wc -l`" -eq 1 ]; then
  14.            # we shouldn't bomb out, if gtk-update-icon-cache failes, 
  15.         # it's not important enough
  16.         gtk-update-icon-cache -q /usr/share/icons/hicolor || true;
  17.     else
  18.         # if the icon theme directory has no subdirs, we can remove the cache
  19.         rm -f /usr/share/icons/hicolor/icon-theme.cache || true;
  20.     fi
  21. fi
  22. # End automatically added section
  23.  
  24.