]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
if called as php.sh, invoke all php versions
authorElan Ruusamäe <glen@delfi.ee>
Fri, 8 May 2015 18:26:38 +0000 (21:26 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Fri, 8 May 2015 18:27:05 +0000 (21:27 +0300)
client/php.sh

index 64267110ce60d255fe39030ad71cf04bf15613f8..9120e4cdea50ad7a883e785ebba5db56f6dd4840 100755 (executable)
@@ -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"} "$@"
This page took 0.0515409999999999 seconds and 4 git commands to generate.