1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-05 22:14:59 +02:00

[ticket/14492] Checkout viglink for each version depending on tags

PHPBB3-14492
This commit is contained in:
Marc Alexander 2016-03-03 12:33:20 +01:00
parent fd37919ecb
commit 88f197e67a
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

@ -289,16 +289,31 @@
<!-- Checkout latest viglink to ext folder --> <!-- Checkout latest viglink to ext folder -->
<available file="${dir}/ext" type="dir" property="add-viglink-ext" /> <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> <if>
<and> <and>
<equals arg1="${add-viglink-ext}" arg2="1" trim="true" /> <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> </and>
<then> <then>
<exec dir="${dir}/ext" command="mkdir phpbb" passthru="true" /> <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" 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/.git" />
<delete dir="${dir}/ext/phpbb/viglink/tests" /> <delete dir="${dir}/ext/phpbb/viglink/tests" />
<delete dir="${dir}/ext/phpbb/viglink/travis" /> <delete dir="${dir}/ext/phpbb/viglink/travis" />