slackbuilds_ponce/system/mdocml/doinst.sh
B. Watson 795dead9ca system/mdocml: Install doinst.sh and .conf.new.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
2017-03-25 13:28:59 +00:00

11 lines
222 B
Bash

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/mandoc.conf.new