[packages/rpm-build-tools/merge-pld-builder-client: 2556/2675] if called as php.sh, invoke all php versions
glen
glen at pld-linux.org
Mon Dec 19 22:07:48 CET 2016
commit e2f77c160041c2b2757bdb6988c0dcf8e4fbff72
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri May 8 21:26:38 2015 +0300
if called as php.sh, invoke all php versions
php.sh | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/php.sh b/php.sh
index 6426711..9120e4c 100755
--- a/php.sh
+++ b/php.sh
@@ -4,4 +4,12 @@ program=${program%.sh}
dir=$(dirname "$0")
suffix=${program#php}
+# if called as php.sh, invoke all php versions
+if [ "$suffix" = "" ]; then
+ for php in $dir/php??.sh; do
+ $php "$@"
+ done
+ exit 0
+fi
+
exec $dir/make-request.sh -D "php_suffix $suffix" ${post_command:+-C "$post_command"} "$@"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/cca6584b96e6c33d0732d559e43e100d804e2ecd
More information about the pld-cvs-commit
mailing list