comparison 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
comparison
equal deleted inserted replaced
7982:b1ff606f01ee 7996:c4bf75f82ffc
124 if [ $# != 1 ]; then 124 if [ $# != 1 ]; then
125 usage 125 usage
126 fi 126 fi
127 127
128 VERSION=$1 128 VERSION=$1
129 if [ "$VERSION" = "default" ]; then 129 if [ -n "`hg branches | sed -n "/$VERSION/p"`" ]; then
130 ARTIFACT_PORT=${ARTIFACT_PORT:-29999} 130 ARTIFACT_PORT=${ARTIFACT_PORT:-29999}
131 else 131 else
132 ARTIFACT_PORT=${ARTIFACT_PORT:-`echo 1$VERSION | sed 's/\.//g'`} 132 ARTIFACT_PORT=${ARTIFACT_PORT:-`echo 1$VERSION | sed 's/\.//g'`}
133 fi 133 fi
134 134
176 fi 176 fi
177 177
178 # Update to current version 178 # Update to current version
179 for repo in $REPOS; do 179 for repo in $REPOS; do
180 cd $repo 180 cd $repo
181 hg up $VERSION 181 if [ -z "`hg tags | sed -n "/$VERSION/p"`" -a -z "`hg branches | sed -n "/$VERSION/p"`" ]
182 then
183 echo "[WARNING]: $VERSION not found in $repo! Updating to default."
184 hg up default
185 else
186 hg up "$VERSION"
187 fi
182 cd $FLYS_SOURCE_DIR 188 cd $FLYS_SOURCE_DIR
183 done 189 done
184 190
185 rm -rf "$WORK_DIR/server" "$WORK_DIR/client" 191 rm -rf "$WORK_DIR/server" "$WORK_DIR/client"
186 cd $WORK_DIR 192 cd $WORK_DIR

http://dive4elements.wald.intevation.org