aboutsummaryrefslogtreecommitdiff
path: root/development/xdebug/doinst.sh
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2011-03-21 17:17:42 +0100
committerRobby Workman <rworkman@slackbuilds.org>2011-03-24 19:22:35 -0500
commitb4bb23f5c0e747e03c992c1409a5b533f2294b52 (patch)
treed45107144cec32549d2dbffe81ba233710a737ad /development/xdebug/doinst.sh
parenta2b3360f94eaf4b14101d5e989c59af7b74caaad (diff)
development/xdebug: New maintainer and updated for version 2.1.0
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'development/xdebug/doinst.sh')
-rw-r--r--development/xdebug/doinst.sh15
1 files changed, 15 insertions, 0 deletions
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
+