diff options
author | Roman Kodinets <rkodinets@gmail.com> | 2016-10-20 21:57:26 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-10-20 21:57:26 +0700 |
commit | 6db117127276fd9cb20744f6d48d535497f75282 (patch) | |
tree | 4dbe513c8194c657256b5551bca4eab9777b2151 /games/empire/doinst.sh | |
parent | 6985e93e35e655ab75518f7b231d981f2e1f6261 (diff) | |
download | slackbuilds-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.sh | 12 |
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 |