diff options
author | pyllyukko <pyllyukko AT maimed dot org> | 2015-10-25 08:28:43 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-10-25 10:04:50 +0700 |
commit | ad9e87a9db2eafb5eb4b93fc1d4340967d21a8fa (patch) | |
tree | 9ee2164537ff30bd2d21a42a3261ee22cc40f05d /games/adom/doinst.sh | |
parent | e658f6c341e1e6c67af5166715a18530bb620ef3 (diff) | |
download | slackbuilds-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.sh | 15 |
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 |