slackbuilds_ponce/development/ltrace/doinst.sh
B. Watson 3279ab2b70 development/ltrace: Added (library call trace utility).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2014-12-21 09:44:11 +07: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/ltrace.conf.new