From 975ecef6a904bf4a3b4173a1c173442e9f3b5237 Mon Sep 17 00:00:00 2001 From: kintel Date: Wed, 10 Feb 2010 00:50:02 +0000 Subject: Handle abort git-svn-id: http://svn.clifford.at/openscad/trunk@427 b57f626f-c46c-0410-a088-ec61d464b74c diff --git a/scripts/publish-macosx.sh b/scripts/publish-macosx.sh index 91986a5..88fd3f7 100755 --- a/scripts/publish-macosx.sh +++ b/scripts/publish-macosx.sh @@ -3,9 +3,12 @@ VERSION=`date "+%Y.%m.%d"` #VERSION=2010.02 -export OPENCSGDIR=$PWD/../OpenCSG-1.3.0 +export OPENCSGDIR=$PWD/../OpenCSG-1.2.0 `dirname $0`/release-common.sh -v $VERSION +if [[ $? != 0 ]]; then + exit 1 +fi cp OpenSCAD-$VERSION.dmg ~/Documents/Dropbox/Public ln -sf OpenSCAD-$VERSION.dmg ~/Documents/Dropbox/Public/OpenSCAD-latest.dmg diff --git a/scripts/release-common.sh b/scripts/release-common.sh index da249ed..f08f046 100755 --- a/scripts/release-common.sh +++ b/scripts/release-common.sh @@ -72,6 +72,7 @@ make -j2 $TARGET if [[ $? != 0 ]]; then echo "Error building OpenSCAD. Aborting." + exit 1 fi echo "Creating directory structure..." -- cgit v0.10.1