mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-23 16:18:50 -05:00
build.xml improvements
Modify -pre-bump-check so that it verifies that there is no existing git tag for the new version.
This commit is contained in:
parent
fec864a426
commit
1f5e1660a8
11
build.xml
11
build.xml
@ -176,6 +176,17 @@
|
||||
</else>
|
||||
</if.contrib>
|
||||
|
||||
<!-- Check that there is no existing git tag for the new version -->
|
||||
<exec executable="git" failonerror="true" outputproperty="git-tag-status" errorproperty="git-tag-status-error">
|
||||
<arg line="tag --list ${version-name}" />
|
||||
</exec>
|
||||
<if.contrib>
|
||||
<equals arg1="${git-tag-status}" arg2="" />
|
||||
<else>
|
||||
<fail>A git tag for version ${version-name} already exists (but should not).</fail>
|
||||
</else>
|
||||
</if.contrib>
|
||||
|
||||
<!-- Assure that we have the latest gh-pages branch -->
|
||||
<exec executable="git" failonerror="true">
|
||||
<arg line="fetch ${origin} +refs/heads/gh-pages:refs/remotes/${origin}/gh-pages" />
|
||||
|
Loading…
Reference in New Issue
Block a user