From b4bb23f5c0e747e03c992c1409a5b533f2294b52 Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Mon, 21 Mar 2011 17:17:42 +0100 Subject: development/xdebug: New maintainer and updated for version 2.1.0 Signed-off-by: Heinz Wiesinger --- development/xdebug/doinst.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 development/xdebug/doinst.sh (limited to 'development/xdebug/doinst.sh') diff --git a/development/xdebug/doinst.sh b/development/xdebug/doinst.sh new file mode 100644 index 0000000000000..ad09d3466fa38 --- /dev/null +++ b/development/xdebug/doinst.sh @@ -0,0 +1,15 @@ +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 + -- cgit v1.2.3