summaryrefslogtreecommitdiff
path: root/system/mdocml/doinst.sh
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2017-03-21 13:52:09 -0400
committerDavid Spencer <idlemoor@slackbuilds.org>2017-03-25 13:28:59 +0000
commit795dead9ca765652c1b9e25340878db3151345e5 (patch)
treef1edc0a25d2eb417e08a0e5e2016eace9a520027 /system/mdocml/doinst.sh
parent53fa752fbd4aa3b3ab2cc8274c6fb99d0c41e5f1 (diff)
downloadslackbuilds-795dead9ca765652c1b9e25340878db3151345e5.tar.gz
system/mdocml: Install doinst.sh and .conf.new.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'system/mdocml/doinst.sh')
-rw-r--r--system/mdocml/doinst.sh3
1 files changed, 0 insertions, 3 deletions
diff --git a/system/mdocml/doinst.sh b/system/mdocml/doinst.sh
index a4357e61d3..1aa4f55e10 100644
--- a/system/mdocml/doinst.sh
+++ b/system/mdocml/doinst.sh
@@ -1,14 +1,11 @@
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