Mercurial > dive4elements > river
diff contrib/make_flys_release/make_release.sh @ 7996:c4bf75f82ffc
Allow building Release from specific branch. Beware that branches to not get different ports automatically.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Wed, 02 Jul 2014 16:35:23 +0200 |
parents | 092678a10379 |
children | 13c3d861db1d |
line wrap: on
line diff
--- a/contrib/make_flys_release/make_release.sh Tue Jul 01 13:11:43 2014 +0200 +++ b/contrib/make_flys_release/make_release.sh Wed Jul 02 16:35:23 2014 +0200 @@ -126,7 +126,7 @@ fi VERSION=$1 -if [ "$VERSION" = "default" ]; then +if [ -n "`hg branches | sed -n "/$VERSION/p"`" ]; then ARTIFACT_PORT=${ARTIFACT_PORT:-29999} else ARTIFACT_PORT=${ARTIFACT_PORT:-`echo 1$VERSION | sed 's/\.//g'`} @@ -178,7 +178,13 @@ # Update to current version for repo in $REPOS; do cd $repo - hg up $VERSION + 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 + else + hg up "$VERSION" + fi cd $FLYS_SOURCE_DIR done