Skip to content

Commit

Permalink
Update build scripts to fetch new changes.
Browse files Browse the repository at this point in the history
Prevent future mistakes when creating tags by always fetching the branch
head before bumping version numbers or creating tags.
  • Loading branch information
markstory committed Jun 30, 2013
1 parent b73f927 commit cd7d18d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion build.xml
Expand Up @@ -164,6 +164,17 @@
<move file="${build.dir}/${pear.package}/${pear.package}.tgz" todir="${dist.dir}" />
</target>

<!--
Updates the local copy to the latest head.
-->
<target name="update-branch">
<echo msg="Updating to latest master." />
<exec executable="git pull">
<arg value="${git.remote}" />
<arg value="master" />
</exec>
</target>

<!--
Bump the version number and commit that.
-->
Expand All @@ -182,7 +193,7 @@
<!--
Create the release commit that updates the version number and pushes the commits.
-->
<target name="release-commit" depends="next-version,prepare">
<target name="release-commit" depends="update-branch,next-version,prepare">
<echo msg="Creating new release commit" />
<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" />
Expand Down

0 comments on commit cd7d18d

Please sign in to comment.