summaryrefslogtreecommitdiff
path: root/games/rogue/doinst.sh
diff options
context:
space:
mode:
authorDavid Melik <dchmelik@gmail.com>2012-08-12 12:50:49 -0400
committerRobby Workman <rworkman@slackbuilds.org>2012-08-14 22:30:50 -0500
commit26bcd5c4b53be98263cf7036f0b0ec032685f5a0 (patch)
tree9354bd09463b2d3d998d1828e2553392132e00b6 /games/rogue/doinst.sh
parentfefebaa0a14ce7c6abe411b689246180d4cfdddf (diff)
downloadslackbuilds-26bcd5c4b53be98263cf7036f0b0ec032685f5a0.tar.gz
games/rogue: Added (visual CRT based fantasy game)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'games/rogue/doinst.sh')
-rw-r--r--games/rogue/doinst.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/games/rogue/doinst.sh b/games/rogue/doinst.sh
new file mode 100644
index 0000000000..fe289c71a2
--- /dev/null
+++ b/games/rogue/doinst.sh
@@ -0,0 +1,11 @@
+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/rogue/rogue54.scr.new