Permalink
Browse files

Fix bug in commiting next version into version file

  • Loading branch information...
1 parent 3bfd511 commit 9b444008eb0a739fe49cda5745424be75d73e43d @beberlei beberlei committed Dec 19, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 packaging.xml
View
@@ -106,10 +106,10 @@
<exec command="git tag -m 'Tag ${release_version}' ${release_version}" passthru="true"/>
<!-- calculate next version, assume that this is a mini version. -->
- <exec command="git revert -n HEAD~1" />
<versionincrement property="next_version" version="${version}" />
- <replace file="${project.basedir}/${project.version_file}" token="${version}" value="${next_version}"/>
- <exec command="git add ${project.basedir}/${project.version_file}" />
+ <replace file="${project.basedir}/${project.version_file}" token="${release_version}" value="${next_version}"/>
+ <replace file="${project.basedir}/composer.json" value="&quot;library&quot;," token="&quot;library&quot;,&quot;version&quot;:&quot;${release_version}&quot;,"/>
+ <exec command="git add ${project.basedir}/${project.version_file} ${project.basedir}/composer.json" />
<exec command="git commit -m 'Bump dev version to ${next_version}'" />
<echo msg="Made a git commit for version ${release_version} and tagged it." />

0 comments on commit 9b44400

Please sign in to comment.