slackbuilds_ponce/system/dosemu/doinst.sh
Matteo Bernardini eb12ed494d system/dosemu: Updated for version 20130804_35054ba.
Moved configurations in /etc/dosemu

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
2013-11-16 13:58:35 -06:00

17 lines
452 B
Bash

config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
# toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
config etc/dosemu/dosemu.conf.new
config etc/dosemu/global.conf.new
config etc/dosemu/dosemu.users.new