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/df9fc10e
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/df9fc10e
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/df9fc10e

Branch: refs/heads/0.9.x
Commit: df9fc10eeebc91f78aaace8abfc47f2f148642e8
Parents: 6cb0422
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:07:52 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/df9fc10e/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/df9fc10e/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

Reply via email to