Skip to content

Commit

Permalink
Add more verbose output to the various commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 8, 2012
1 parent 1644b1c commit 90423dc
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions build.xml
Expand Up @@ -162,18 +162,16 @@
</exec>
<echo msg="Version number updated." />
<property name="version" value="${release_version}" override="true" />
<echo msg="${version}" />
<echo msg="${release_version}" />
</target>

<!--
Create the release commit that updates the version number and pushes the commits.
-->
<target name="release-commit" depends="next-version,prepare">
<echo msg="Creating new release commit" />
<exec command="git add ./lib/Cake/VERSION.txt" checkreturn="true" />
<exec command="git commit -m 'Update version number to ${release_version}'" checkreturn="true" />
<exec command="git tag -a ${release_version} -m 'CakePHP ${release_version}'" checkreturn="true" />
<exec command="git add ./lib/Cake/VERSION.txt" logoutput="true" checkreturn="true" />
<exec command="git commit -m 'Update version number to ${release_version}'" logoutput="true" checkreturn="true" />
<exec command="git tag -a ${release_version} -m 'CakePHP ${release_version}'" logoutput="true" checkreturn="true" />

<propertyprompt propertyName="shipit" defaultValue="n" promptText="Ship the new commit and tag?" />
<condition property="noshipit" value="1">
Expand All @@ -182,8 +180,8 @@
<fail if="noshipit" msg="You said not to ship it." />

<echo msg="Pushing commit and tag." />
<exec command="git push ${git.remote}" checkreturn="true" />
<exec command="git push ${git.remote} ${release_version}" checkreturn="true" />
<exec command="git push ${git.remote}" logoutput="true" checkreturn="true" />
<exec command="git push ${git.remote} ${release_version}" logoutput="true" checkreturn="true" />
<echo msg="Push complete." />
</target>

Expand All @@ -204,5 +202,4 @@
<target name="build" depends="generate-package" />
<target name="release" depends="release-commit,build,distribute" />


</project>

0 comments on commit 90423dc

Please sign in to comment.