From 75201a5a600d7595f3fe06c980791afccccea994 Mon Sep 17 00:00:00 2001 From: Romain Pelisse Date: Sun, 11 Sep 2011 19:13:45 +0000 Subject: [PATCH] ensure that release script fails when ant build fails git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@7238 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/etc/generate_release.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pmd/etc/generate_release.sh b/pmd/etc/generate_release.sh index af50222f2f..24d07a43db 100644 --- a/pmd/etc/generate_release.sh +++ b/pmd/etc/generate_release.sh @@ -41,6 +41,12 @@ echo cd .. ant -f bin/build.xml dist +status="${?}" + +if [ ${status} -ne 0 ]; then + echo "build failed - aborting release" + exit 2 +fi echo echo "Press [enter] to generate docs"