From 46671ba8b8313e334a4af2aec3f82de597bf8384 Mon Sep 17 00:00:00 2001 From: Romain Pelisse Date: Sun, 11 Sep 2011 19:14:17 +0000 Subject: [PATCH] set release script to stop on the first shell failure git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@7240 51baf565-9d33-0410-a72c-fc3788e3496d --- pmd/etc/generate_release.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pmd/etc/generate_release.sh b/pmd/etc/generate_release.sh index 24d07a43db..891e251813 100644 --- a/pmd/etc/generate_release.sh +++ b/pmd/etc/generate_release.sh @@ -23,9 +23,9 @@ if [ -z ${version} ]; then exit 1 fi -check_dependency ant -check_dependency maven -check_dependency mvn +check_dependency "ant" +check_dependency "maven" +check_dependency "mvn" echo "building release version ${version}" @@ -39,6 +39,7 @@ echo echo "Rebuilding everything" echo +set -e cd .. ant -f bin/build.xml dist status="${?}"