Mercurial > dive4elements > river
comparison contrib/make_flys_release/make_release.sh @ 9673:e04851177bb7 3.2.x
Remove default user name for pushing tags
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 29 May 2020 18:36:09 +0200 |
parents | f5fa2467f9c0 |
children | 59ad66feb8f8 |
comparison
equal
deleted
inserted
replaced
9672:b70b1bc0eece | 9673:e04851177bb7 |
---|---|
1 #!/bin/bash | 1 #!/bin/bash |
2 # Release script for Dive4Elements River | 2 # Release script for Dive4Elements River |
3 # | 3 # |
4 # Authors: | 4 # Authors: |
5 # Andre Heinecke <aheinecke@intevation.de> | 5 # Andre Heinecke <aheinecke@intevation.de> |
6 # Tom Gottfried <tom@intevation.de> | |
6 # | 7 # |
7 # Copyright (C) 2011 - 2014 by Bundesanstalt für Gewässerkunde | 8 # Copyright (C) 2011 - 2014, 2020 by Bundesanstalt für Gewässerkunde |
8 # Software engineering by Intevation GmbH | 9 # Software engineering by Intevation GmbH |
9 # | 10 # |
10 # This file is Free Software under the GNU AGPL (>=v3) | 11 # This file is Free Software under the GNU AGPL (>=v3) |
11 # and comes with ABSOLUTELY NO WARRANTY! Check out the | 12 # and comes with ABSOLUTELY NO WARRANTY! Check out the |
12 # documentation coming with Dive4Elements River for details. | 13 # documentation coming with Dive4Elements River for details. |
13 | 14 |
14 set -e | 15 set -e |
15 LC_ALL=en_US.UTF-8 | 16 LC_ALL=en_US.UTF-8 |
16 DEFAULT_WD=/tmp/flys-release | 17 DEFAULT_WD=/tmp/flys-release |
17 DEVELOPER=aheinecke | |
18 | 18 |
19 ARTIFACTS_HG_REPO="https://wald.intevation.org/hg/dive4elements/framework" | 19 ARTIFACTS_HG_REPO="https://wald.intevation.org/hg/dive4elements/framework" |
20 HTTPCLIIENT_HG_REPO="https://wald.intevation.org/hg/dive4elements/http-client" | 20 HTTPCLIIENT_HG_REPO="https://wald.intevation.org/hg/dive4elements/http-client" |
21 FLYS_HG_REPO="https://wald.intevation.org/hg/dive4elements/river" | 21 FLYS_HG_REPO="https://wald.intevation.org/hg/dive4elements/river" |
22 | 22 |
35 OPTIONS: | 35 OPTIONS: |
36 -?, --help Show this message | 36 -?, --help Show this message |
37 -w The working directory to use (do not use spaces in path) | 37 -w The working directory to use (do not use spaces in path) |
38 Default: $DEFAULT_WD | 38 Default: $DEFAULT_WD |
39 -t Tag the current default branch as "VERSION" | 39 -t Tag the current default branch as "VERSION" |
40 Note that \$USER is used as the repository user name | |
41 for pushing the tags. | |
40 -o, --oracle Release is for oracle. | 42 -o, --oracle Release is for oracle. |
41 Suitable jar-file for JDBC driver has to be given with | 43 Suitable jar-file for JDBC driver has to be given with |
42 the environment variable ORACLE_JDBC | 44 the environment variable ORACLE_JDBC |
43 VERSION must specify a tag (usually MAYOR.MINOR.PATCH) or a branch name. | 45 VERSION must specify a tag (usually MAYOR.MINOR.PATCH) or a branch name. |
44 EOF | 46 EOF |
135 echo "" | 137 echo "" |
136 hg log -l1 | 138 hg log -l1 |
137 read | 139 read |
138 OLD_REV=$(cat .hgtags | tail -1 | awk '{print $2}') | 140 OLD_REV=$(cat .hgtags | tail -1 | awk '{print $2}') |
139 hg tag $VERSION -m "Added tag $VERSION for changeset $CHANGESET" | 141 hg tag $VERSION -m "Added tag $VERSION for changeset $CHANGESET" |
140 hg push ssh://$DEVELOPER@scm.wald.intevation.org/hg/dive4elements/$repo | 142 hg push ssh://$USER@scm.wald.intevation.org/hg/dive4elements/$repo |
141 echo "Changelog for $repo" >> $WORK_DIR/changes_$OLD_REV-$VERSION.txt | 143 echo "Changelog for $repo" >> $WORK_DIR/changes_$OLD_REV-$VERSION.txt |
142 echo "#############################################################################" \ | 144 echo "#############################################################################" \ |
143 >> $WORK_DIR/changes_$OLD_REV-$VERSION.txt | 145 >> $WORK_DIR/changes_$OLD_REV-$VERSION.txt |
144 hg log -r $VERSION:$OLD_REV --style changelog >> $WORK_DIR/changes_$OLD_REV-$VERSION.txt | 146 hg log -r $VERSION:$OLD_REV --style changelog >> $WORK_DIR/changes_$OLD_REV-$VERSION.txt |
145 cd $FLYS_SOURCE_DIR | 147 cd $FLYS_SOURCE_DIR |