diff options
author | David Melik <dchmelik@gmail.com> | 2012-08-12 12:50:49 -0400 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-08-14 22:30:50 -0500 |
commit | 26bcd5c4b53be98263cf7036f0b0ec032685f5a0 (patch) | |
tree | 9354bd09463b2d3d998d1828e2553392132e00b6 /games/rogue/doinst.sh | |
parent | fefebaa0a14ce7c6abe411b689246180d4cfdddf (diff) |
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.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/games/rogue/doinst.sh b/games/rogue/doinst.sh new file mode 100644 index 0000000000000..fe289c71a27b5 --- /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 |