slackbuilds_ponce/games/firestorm/doinst.sh
Martin Rogge c8bf3c668c games/firestorm: Updated for version 4.1.1.28744.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
2012-08-14 22:30:33 -05:00

15 lines
491 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 opt/firestorm/firestorm.new
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database 1> /dev/null &> /dev/null
fi