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