diff options
author | David Melik <dchmelik@gmail.com> | 2012-08-10 17:24:05 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-08-10 18:29:17 -0500 |
commit | cb3928b6eda11c9eea0f2fc9e7e08234e3f5beb1 (patch) | |
tree | a64e8a95c80b136345b6ebaed1983444da742a65 /games/moria/doinst.sh | |
parent | 028ae838cf6dbc8bcba27fe77014a4efbcda9208 (diff) | |
download | slackbuilds-cb3928b6eda11c9eea0f2fc9e7e08234e3f5beb1.tar.gz |
games/moria: Added (a roguelike game)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'games/moria/doinst.sh')
-rw-r--r-- | games/moria/doinst.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/games/moria/doinst.sh b/games/moria/doinst.sh new file mode 100644 index 0000000000..9bddea8390 --- /dev/null +++ b/games/moria/doinst.sh @@ -0,0 +1,17 @@ +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 var/games/moria/scores.new +config etc/moria-hours.new + +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + |