[projects/pld-builder.new] if called as php.sh, invoke all php versions

glen glen at pld-linux.org
Fri May 8 20:27:18 CEST 2015


commit 100ddfbbf67e8a41f2d77c1f98fee27fa74ff8a3
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

 client/php.sh | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/client/php.sh b/client/php.sh
index 6426711..9120e4c 100755
--- a/client/php.sh
+++ b/client/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/projects/pld-builder.new.git/commitdiff/100ddfbbf67e8a41f2d77c1f98fee27fa74ff8a3



More information about the pld-cvs-commit mailing list