summaryrefslogtreecommitdiff
path: root/system/mdocml/doinst.sh
diff options
context:
space:
mode:
authorLEVAI Daniel <leva@ecentrum.hu>2014-08-30 18:39:17 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-08-30 18:39:17 +0700
commit4f176e3053b1af0684a4c84203829e03691be645 (patch)
tree92ab514804a9a5a1083409f8336213f202ed9faf /system/mdocml/doinst.sh
parent25501c5d4e61d7c9287bee7126bc9b2d50af59a9 (diff)
downloadslackbuilds-4f176e3053b1af0684a4c84203829e03691be645.tar.gz
system/mdocml: Updated for version 1.13.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/mdocml/doinst.sh')
-rw-r--r--system/mdocml/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/system/mdocml/doinst.sh b/system/mdocml/doinst.sh
new file mode 100644
index 0000000000..a4357e61d3
--- /dev/null
+++ b/system/mdocml/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/mandoc.conf.new