From 26bcd5c4b53be98263cf7036f0b0ec032685f5a0 Mon Sep 17 00:00:00 2001 From: David Melik Date: Sun, 12 Aug 2012 12:50:49 -0400 Subject: games/rogue: Added (visual CRT based fantasy game) Signed-off-by: dsomero --- games/rogue/doinst.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 games/rogue/doinst.sh (limited to 'games/rogue/doinst.sh') 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 -- cgit v1.2.3