doinst.sh 544 B

12345678910111213141516171819202122
  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/wmbutton.conf.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 [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
  15. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  16. /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
  17. fi
  18. fi