78cd4bba45963e46cc7bd07bf32216be95c791f5
3 echo "Usage $0 <repo> <tag>"
9 tag_header
="OSM Release TWO:"
10 tag_message
="$tag_header version $TAG"
12 modules
="juju-charms devops descriptor-packages openvim RO SO UI osmclient"
15 if [ "$1" == "$i" -o "$1" == "all" ]; then
21 [ "$1" == "all" ] && list
=$modules
23 if [ -z "$list" ]; then
24 echo "Repo must be one of these: $modules all"
31 if [ "$i" == "juju-charms" ] && [ "$1" == "all" ] ; then
32 #This is to allow "./newtag.sh all v2.0.0", and still checkout master in "juju-charms" before tagging
33 git
-C $i checkout master
35 git
-C $i checkout
$CURRENT_BRANCH
37 git
-C $i pull
--rebase
38 git
-C $i tag
-a $TAG -m"$tag_message"
39 git
-C $i push origin
$TAG --follow-tags