doinst.sh 442 B

1234567891011121314151617181920
  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 usr/share/bed/bedrc.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 etc/file/recompile_magic.mgc.sh ]; then
  15. etc/file/recompile_magic.mgc.sh
  16. fi