summaryrefslogtreecommitdiffstats
path: root/games/adom/doinst.sh
diff options
context:
space:
mode:
author pyllyukko2015-10-25 02:28:43 +0100
committer Willy Sudiarto Raharjo2015-10-25 04:04:50 +0100
commitad9e87a9db2eafb5eb4b93fc1d4340967d21a8fa (patch)
tree9ee2164537ff30bd2d21a42a3261ee22cc40f05d /games/adom/doinst.sh
parente658f6c341e1e6c67af5166715a18530bb620ef3 (diff)
downloadslackbuilds-ad9e87a9db2eafb5eb4b93fc1d4340967d21a8fa.tar.gz
games/adom: Updated for version r60.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/adom/doinst.sh')
-rw-r--r--games/adom/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/games/adom/doinst.sh b/games/adom/doinst.sh
new file mode 100644
index 0000000000..ef11d52bc3
--- /dev/null
+++ b/games/adom/doinst.sh
@@ -0,0 +1,15 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ -s "$OLD" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/adom_ds.cfg.new
+config var/lib/adom/HISCORE.new