diff options
author | Marc Alexander <admin@m-a-styles.de> | 2016-03-03 12:33:20 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2016-12-03 14:23:34 +0100 |
commit | 88f197e67aab9e40e4688d6da7096dac59934101 (patch) | |
tree | 8cd160ac09094245c266e45fabce47ade884f6f7 /build | |
parent | [ticket/14492] Remove unused use statement (diff) | |
download | phpbb-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.xml | 19 |
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('${version}', '3.2.0-b3', '>=') ? 'true' : 'false';"' + 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" /> |