douninst.sh 870 B

1234567891011121314151617181920212223
  1. if [ -x /usr/bin/update-desktop-database ]; then
  2. /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
  3. fi
  4. if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
  5. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  6. /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
  7. fi
  8. fi
  9. # How to cleanly remove a GNU info file from the index:
  10. # Rebuild the info dir after our info file was removed. With modern versions
  11. # of install-info, it's OK if our wildcard includes e.g. gcc.info.gz and
  12. # gcc-1.info.gz (it won't create duplicate index entries). We have at least
  13. # one package that does NOT compress its info files, for a good reason, so
  14. # we can't say *.info.gz here.
  15. if [ -x /usr/bin/install-info -a -d usr/info ]; then
  16. ( cd usr/info
  17. rm -f dir
  18. for i in *.info*; do /usr/bin/install-info $i dir 2>/dev/null; done
  19. )
  20. fi