slackbuilds_ponce/office/multivalent-tool-pdf/doinst.sh
Alexander Verbovetsky d63cc2cc24
office/multivalent-tool-pdf: Updated for version 0.8.5.20060102.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
2017-02-04 06:59:32 +07:00

14 lines
402 B
Bash

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/bash_completion.d/multivalent-tool-pdf.new