2 if [ $# -lt 1 -o $# -gt 2 ]; then
3 echo "Usage $0 <repo> [<branch>]"
12 modules
="juju-charms devops descriptor-packages openvim RO SO UI osmclient IM N2VC MON vim-emu"
15 if [ "$1" == "$i" -o "$1" == "all" ]; then
21 [ "$1" == "all" ] && list
=$modules
23 if [ "$1" == "juju-charms" ] && [ "$BRANCH" != "master" ]; then
24 echo "Repo $1 does not have branch $BRANCH"
28 if [ -z "$list" ]; then
29 echo "Repo must be one of these: $modules all"
37 if [ "$i" == "juju-charms" ] && [ "$1" == "all" ] ; then
38 #This is to allow "./update.sh all v2.0", and still update "juju-charms" with master
39 git
-C $i checkout master
41 git
-C $i checkout
$BRANCH
43 git
-C $i pull
--rebase