aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-12-29 04:38:16 +0100
committerAndreas Fischer <bantu@phpbb.com>2012-12-29 04:44:45 +0100
commit46a752ee628fc4b08f2d5e26b159dca41b816277 (patch)
tree82e40a49d1d6241e6d291c73d39249d25994750a /build
parent370e3c31e86406eef2b5b292782f05fd1bf6c659 (diff)
downloadforums-46a752ee628fc4b08f2d5e26b159dca41b816277.tar
forums-46a752ee628fc4b08f2d5e26b159dca41b816277.tar.gz
forums-46a752ee628fc4b08f2d5e26b159dca41b816277.tar.bz2
forums-46a752ee628fc4b08f2d5e26b159dca41b816277.tar.xz
forums-46a752ee628fc4b08f2d5e26b159dca41b816277.zip
[ticket/11291] phing packaging: Export composer.phar and install dependencies.
PHPBB3-11291
Diffstat (limited to 'build')
-rw-r--r--build/build.xml14
1 files changed, 10 insertions, 4 deletions
diff --git a/build/build.xml b/build/build.xml
index ae36413d2f..393343d677 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -167,15 +167,21 @@
checkreturn="true" />
<!--
- Make sure composer is available before calling it.
- Older versions of the tree didn't use it.
+ If composer.phar exists in this version of the tree, also export
+ it into ${dir}, install dependencies, then delete it again.
-->
+ <exec dir="."
+ command="git ls-tree ${revision} composer.phar"
+ outputProperty='composer-ls-tree-output' />
<if>
- <available file='${dir}/../composer.phar' type='file' />
+ <not><equals arg1="${composer-ls-tree-output}" arg2="" trim="true" /></not>
<then>
+ <exec dir="."
+ command="git archive ${revision} composer.phar | tar -xf - -C ${dir}" />
<exec dir="${dir}"
- command="php ../composer.phar install"
+ command="php composer.phar install"
passthru="true" />
+ <delete file="${dir}/composer.phar" />
</then>
</if>