slackbuilds_ponce/games/tome/doinst.sh
David Melik e524edc30c games/tome: Updated for version v2.3.10_ah, added a startup script.
(cleanups, linked explicitly to libm  --ponce)

Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
2012-12-20 12:20:11 +01:00

20 lines
532 B
Bash

#!/bin/sh
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...
}
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
#config var/games/tome/apex/scores.raw.new