Skip to content

Commit

Permalink
fix release version value
Browse files Browse the repository at this point in the history
version value is fetched from git commit's tag
  • Loading branch information
vaidas-lungis committed Jan 7, 2015
1 parent 05d4757 commit ca8f368
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
<?xml version="1.0"?>

<project name="BoxBilling" default="build" basedir=".">
<tstamp>
<format property="version" pattern="4.M.d" />
</tstamp>
<property environment="env" />
<property name="build.dir" value="${basedir}/build" />
<property name="dist.dir" value="${build.dir}/distribution" />
<property name="documentation" value="${build.dir}/documentation" />
<property name="source" value="${build.dir}/source" />
<property name="release" value="${version}" />

<fileset id="shared-artifacts" dir=".">
<include name="LICENSE"/>
Expand Down Expand Up @@ -134,6 +130,12 @@
<copy todir="${source}">
<fileset refid="api-sources"/>
</copy>

<exec executable="git" outputproperty="release" >
<arg line="describe --abbrev=0"/>
</exec>
<echo message="Release version: ${release}" />

<exec executable="sed" failonerror="true" output="${source}/bb-library/Box/Version2.php">
<arg line="s/0.0.1/${release}/ ${source}/bb-library/Box/Version.php" />
</exec>
Expand Down

0 comments on commit ca8f368

Please sign in to comment.