make release scripts fail fast
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/820724eb Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/820724eb Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/820724eb Branch: refs/heads/master Commit: 820724eb8ceac419003323c4987d5a93cd145f0f Parents: 22f1bf3 Author: Rafael Schloming <r...@alum.mit.edu> Authored: Wed Apr 29 15:07:52 2015 -0400 Committer: Rafael Schloming <r...@alum.mit.edu> Committed: Wed Apr 29 15:36:10 2015 -0400 ---------------------------------------------------------------------- bin/release.sh | 8 ++++---- bin/version.sh | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/820724eb/bin/release.sh ---------------------------------------------------------------------- diff --git a/bin/release.sh b/bin/release.sh index 474eb56..7668408 100755 --- a/bin/release.sh +++ b/bin/release.sh @@ -59,8 +59,8 @@ die() else REMOTE="origin" fi - bin/version.sh $VERSION - git commit -a -m "Release $VERSION" - git tag -m "Release $VERSION" $TAG - echo "Run 'git push ${REMOTE} ${TAG}' to push the tag upstream." + bin/version.sh $VERSION && \ + git commit -a -m "Release $VERSION" && \ + git tag -m "Release $VERSION" $TAG && \ + echo "Run 'git push ${REMOTE} ${TAG}' to push the tag upstream." ) http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/820724eb/bin/version.sh ---------------------------------------------------------------------- diff --git a/bin/version.sh b/bin/version.sh index 2acfe00..d60f211 100755 --- a/bin/version.sh +++ b/bin/version.sh @@ -39,5 +39,5 @@ else usage fi -echo ${VERSION} > ${SRC}/version.txt -mvn org.codehaus.mojo:versions-maven-plugin:1.2:set org.codehaus.mojo:versions-maven-plugin:1.2:commit -DnewVersion="${VERSION}" -f ${SRC}/pom.xml +echo ${VERSION} > ${SRC}/version.txt && \ + mvn -q org.codehaus.mojo:versions-maven-plugin:1.2:set org.codehaus.mojo:versions-maven-plugin:1.2:commit -DnewVersion="${VERSION}" -f ${SRC}/pom.xml --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org