Siba/buildandgit.xml
Christian Pierre MOMON 861726b58d Fixed build process.
2016-09-13 13:07:12 +02:00

30 lines
1.0 KiB
XML

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<project default="buildandgit" name="Siba">
<!-- ***** Core ***** -->
<import file="build.xml" />
<!-- ***** Dist ***** -->
<target name="buildandgit" depends="dist, clean">
<!-- GIT actions-->
<echo message="Commit build.num"/>
<exec executable="git" outputproperty="git.commit.out" failifexecutionfails="true">
<arg line="commit -m 'Build ${dist.version}' build.num"/>
</exec>
<echo message="${git.commit.out}" />
<echo message="Tag"/>
<exec executable="git" outputproperty="git.tag.out" failifexecutionfails="true">
<arg line="tag -a ${dist.version} -m 'Build ${dist.version}'"/>
</exec>
<echo message="${git.tag.out}" />
<echo message="Push"/>
<exec executable="git" outputproperty="git.push.out" failifexecutionfails="true">
<arg line="push --follow-tags"/>
</exec>
<echo message="${git.push.out}" />
</target>
</project>