slackbuilds_ponce/desktop/amiwm/doinst.sh
B. Watson 60e3067dde
desktop/amiwm: Added (Amiga lookalike X window manager)
Signed-off-by: bedlam <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2023-04-22 11:38:29 +07:00

11 lines
237 B
Bash

config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
rm $NEW
fi
}
config usr/@LIB@/amiwm/system.amiwmrc.new