aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2016-03-03 12:33:20 +0100
committerMarc Alexander <admin@m-a-styles.de>2016-12-03 14:23:34 +0100
commit88f197e67aab9e40e4688d6da7096dac59934101 (patch)
tree8cd160ac09094245c266e45fabce47ade884f6f7 /build
parent[ticket/14492] Remove unused use statement (diff)
downloadphpbb-88f197e67aab9e40e4688d6da7096dac59934101.tar.gz
phpbb-88f197e67aab9e40e4688d6da7096dac59934101.tar.bz2
phpbb-88f197e67aab9e40e4688d6da7096dac59934101.zip
[ticket/14492] Checkout viglink for each version depending on tags
PHPBB3-14492
Diffstat (limited to 'build')
-rw-r--r--build/build.xml19
1 files changed, 17 insertions, 2 deletions
diff --git a/build/build.xml b/build/build.xml
index 0fdf6c0cb0..ab7085eda6 100644
--- a/build/build.xml
+++ b/build/build.xml
@@ -289,16 +289,31 @@
<!-- Checkout latest viglink to ext folder -->
<available file="${dir}/ext" type="dir" property="add-viglink-ext" />
+ <exec dir="${dir}"
+ command='php -r "echo version_compare(&apos;${version}&apos;, &apos;3.2.0-b3&apos;, &apos;>=&apos;) ? &apos;true&apos; : &apos;false&apos;;"'
+ checkreturn="true"
+ outputProperty='viglink-available' />
<if>
<and>
<equals arg1="${add-viglink-ext}" arg2="1" trim="true" />
- <equals arg1="${revision}" arg2="HEAD" trim="true" />
+ <or>
+ <equals arg1="${revision}" arg2="HEAD" trim="true" />
+ <equals arg1="${viglink-available}" arg2="1" trim="true" />
+ </or>
</and>
<then>
<exec dir="${dir}/ext" command="mkdir phpbb" passthru="true" />
<exec dir="${dir}/ext/phpbb" command="git clone https://github.com/phpbb-extensions/viglink.git viglink" passthru="true" checkreturn="true" />
- <exec dir="${dir}/ext/phpbb/viglink" command="git checkout master" />
+ <if>
+ <equals arg1="${revision}" arg2="HEAD" trim="true" />
+ <then>
+ <exec dir="${dir}/ext/phpbb/viglink" command="git checkout master" passthru="true" />
+ </then>
+ <else>
+ <exec dir="${dir}/ext/phpbb/viglink" command="git checkout release-phpbb-${version}" passthru="true" />
+ </else>
+ </if>
<delete dir="${dir}/ext/phpbb/viglink/.git" />
<delete dir="${dir}/ext/phpbb/viglink/tests" />
<delete dir="${dir}/ext/phpbb/viglink/travis" />