#!/bin/bash branch=${1:-master} nextbranch=${branch}-nut for i in openembedded-core yocto-docs bitbake meta-yocto; do echo $i if [ $branch != "master" -a $i = "bitbake" ]; then continue fi cd ~/Repos/$i git checkout master git pull git fetch contrib git checkout stable/$nextbranch git rebase $branch done cd ~/Repos/poky layerfile=combo-layer-stable-${branch}-nut.conf cp ../poky-config/$layerfile ../poky-config/combo-layer-stable-nut.conf git checkout -f master git pull git branch -D stable/$nextbranch git checkout $branch git checkout -b stable/$nextbranch #git reset stable/$nextbranch --hard # Add -D option for debug ../poky-config/combo-layer -c ../poky-config/combo-layer-stable-nut.conf -n update #git checkout master