slackbuilds_ponce/development/xdebug/doinst.sh
Heinz Wiesinger b4bb23f5c0 development/xdebug: New maintainer and updated for version 2.1.0
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
2011-03-24 19:22:35 -05:00

15 lines
375 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/php/xdebug.ini.new