[packages/php-phing] restore PHP_COMMAND env var, used by phing as php.interpreter property
glen
glen at pld-linux.org
Tue Jun 17 22:48:56 CEST 2014
commit 4aff90feb7721a17687e37203da2432877bcc33c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Jun 17 23:33:01 2014 +0300
restore PHP_COMMAND env var, used by phing as php.interpreter property
phing.sh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/phing.sh b/phing.sh
index 3219889..49531ba 100755
--- a/phing.sh
+++ b/phing.sh
@@ -9,6 +9,10 @@ if [ -z "$PHP_CLASSPATH" ]; then
export PHP_CLASSPATH=/usr/share/php
fi
+if [ -z "$PHP_COMMAND" ]; then
+ export PHP_COMMAND=/usr/bin/php
+fi
+
export PHING_HOME=/usr/share/php/phing
-exec /usr/bin/php /usr/share/php/phing.php -logger phing.listener.DefaultLogger ${1:+"$@"}
+exec $PHP_COMMAND /usr/share/php/phing.php -logger phing.listener.DefaultLogger ${1:+"$@"}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/php-phing.git/commitdiff/4aff90feb7721a17687e37203da2432877bcc33c
More information about the pld-cvs-commit
mailing list