slackbuilds_ponce/development/latrace/doinst.sh
Willy Sudiarto Raharjo d2ccefdfd7 development/latrace: Re-Added after current update.
Revert "development/latrace: Removed (no longer build)."

This reverts commit cf2b7d3ac0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2016-03-08 11:52:23 +07:00

15 lines
387 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/latrace.d/latrace.conf.new