summaryrefslogtreecommitdiffstats
path: root/office/magicpoint/doinst.sh
diff options
context:
space:
mode:
author Daniel de Kok <danieldk@pobox.com>2010-05-11 15:03:03 +0200
committer Robby Workman <rworkman@slackbuilds.org>2010-05-11 15:03:03 +0200
commit3c79c735c69f37fb9fa0af05f97eb1343b35114c (patch)
treebb80213851f4be1c8986b885784ac5c0c51e6c9c /office/magicpoint/doinst.sh
parent115b7ef6690916787f6009a6bf21e04d7b007d50 (diff)
downloadslackbuilds-3c79c735c69f37fb9fa0af05f97eb1343b35114c.tar.gz
slackbuilds-3c79c735c69f37fb9fa0af05f97eb1343b35114c.tar.xz
office/magicpoint: Initial import
Diffstat (limited to '')
-rw-r--r--office/magicpoint/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/office/magicpoint/doinst.sh b/office/magicpoint/doinst.sh
new file mode 100644
index 0000000000..eedb5b6f28
--- /dev/null
+++ b/office/magicpoint/doinst.sh
@@ -0,0 +1,14 @@
+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 [ "`cat $OLD | md5sum`" = "`cat $NEW | md5sum`" ]; then # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/mgp/default.mgp.new
+