summaryrefslogtreecommitdiffstats
path: root/buildit-nut
blob: 62525a07e9e1b3d467088eaf658188353d153431 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/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