aboutsummaryrefslogtreecommitdiff
path: root/games/rogue/doinst.sh
diff options
context:
space:
mode:
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 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