3 echo "Usage $0 <repo> <branch> <tag> <user> <release_name>"
4 echo "Example: $0 all master v4.0.2 garciadeblas FOUR"
5 echo "Example: $0 devops v5.0 v5.0.3 marchettim FIVE"
13 tag_header
="OSM Release $RELEASE_NAME:"
14 tag_message
="$tag_header version $TAG"
16 modules
="common devops IM LCM LW-UI MON N2VC NBI openvim osmclient RO vim-emu POL"
19 if [ "$1" == "$i" -o "$1" == "all" ]; then
25 [ "$1" == "all" ] && list
=$modules
27 if [ -z "$list" ]; then
28 echo "Repo must be one of these: $modules all"
35 git clone
ssh://$USER@osm.etsi.org
:29418/osm
/$i
37 git
-C $i checkout
$BRANCH
38 git
-C $i pull
--rebase
39 git
-C $i tag
-a $TAG -m"$tag_message"
40 git
-C $i push origin
$TAG --follow-tags