doinst.sh 658 B

1234567891011121314151617181920212223242526
  1. config() {
  2. NEW="$1"
  3. OLD="$(dirname $NEW)/$(basename $NEW .new)"
  4. if [ ! -r $OLD ]; then
  5. mv $NEW $OLD
  6. elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
  7. rm $NEW
  8. fi
  9. }
  10. config etc/imv/imv_config.new
  11. if [ -x /usr/bin/update-desktop-database ]; then
  12. /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
  13. fi
  14. if [ -x /usr/bin/update-mime-database ]; then
  15. /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
  16. fi
  17. if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
  18. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  19. /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
  20. fi
  21. fi