diff contrib/make_flys_release/make_release.sh @ 8740:1bc1d6969520 3.1.10

Release script: just a warning would end up with a package that really looks like VERSION (e.g. if -t was forgotten).
author Tom Gottfried <tom@intevation.de>
date Thu, 07 May 2015 09:51:38 +0200
parents f1250a55acd6
children 5b4bd0680160
line wrap: on
line diff
--- a/contrib/make_flys_release/make_release.sh	Thu May 07 09:26:43 2015 +0200
+++ b/contrib/make_flys_release/make_release.sh	Thu May 07 09:51:38 2015 +0200
@@ -140,8 +140,8 @@
     cd $repo
     if [ -z "`hg tags | sed -n "/$VERSION/p"`" -a -z "`hg branches | sed -n "/$VERSION/p"`" ]
     then
-        echo "WARNING: $VERSION not found in $repo! Updating to default."
-        hg up default
+        echo "ERROR: No tag or branch $VERSION found in repository of $repo!"
+        exit 1
     else
         hg up "$VERSION"
     fi

http://dive4elements.wald.intevation.org