summaryrefslogtreecommitdiff
path: root/games/empire/doinst.sh
diff options
context:
space:
mode:
authorRoman Kodinets <rkodinets@gmail.com>2016-10-20 21:57:26 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-10-20 21:57:26 +0700
commit6db117127276fd9cb20744f6d48d535497f75282 (patch)
tree4dbe513c8194c657256b5551bca4eab9777b2151 /games/empire/doinst.sh
parent6985e93e35e655ab75518f7b231d981f2e1f6261 (diff)
downloadslackbuilds-6db117127276fd9cb20744f6d48d535497f75282.tar.gz
games/empire: Added (strategy game).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/empire/doinst.sh')
-rw-r--r--games/empire/doinst.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/games/empire/doinst.sh b/games/empire/doinst.sh
new file mode 100644
index 0000000000..95c1829e9f
--- /dev/null
+++ b/games/empire/doinst.sh
@@ -0,0 +1,12 @@
+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 etc/games/empire/econfig.new
+config etc/games/empire/schedule.new