Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
8739:f1250a55acd6 | 8740:1bc1d6969520 |
---|---|
138 # Update to current version | 138 # Update to current version |
139 for repo in $REPOS; do | 139 for repo in $REPOS; do |
140 cd $repo | 140 cd $repo |
141 if [ -z "`hg tags | sed -n "/$VERSION/p"`" -a -z "`hg branches | sed -n "/$VERSION/p"`" ] | 141 if [ -z "`hg tags | sed -n "/$VERSION/p"`" -a -z "`hg branches | sed -n "/$VERSION/p"`" ] |
142 then | 142 then |
143 echo "WARNING: $VERSION not found in $repo! Updating to default." | 143 echo "ERROR: No tag or branch $VERSION found in repository of $repo!" |
144 hg up default | 144 exit 1 |
145 else | 145 else |
146 hg up "$VERSION" | 146 hg up "$VERSION" |
147 fi | 147 fi |
148 cd $FLYS_SOURCE_DIR | 148 cd $FLYS_SOURCE_DIR |
149 done | 149 done |