buildbot: config of my buildbot running on http://home.haerwu.biz:8010/
[vuplus_openembedded] / contrib / mtn2git / update-script.example
1 #!/bin/bash
2
3 export PATH=/home/zecke/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
4
5 cd $HOME/mtn2git-scm/oe-convert/
6
7 # Update monotone
8 mtn --db ../OE.mtn pull monotone.linuxtogo.org "org.openembedded.*"
9
10 OLD_OE_DIR=openembedded-git.$$.$RANDOM
11
12 git-clone -l openembedded-git $OLD_OE_DIR
13 cp git-import-marks2 $OLD_OE_DIR/
14 cp mtn2git-status.v2 $OLD_OE_DIR/
15 cp mtn2git-marks     $OLD_OE_DIR/
16
17 cd openembedded-git
18 # Convert (this could fail as our marks are not complete...) and we hardcode the revision
19 #../../mtn2git/mtn2git.py --db ../../OE.mtn --marks=../mtn2git-marks --status=../mtn2git-status.v2 2> /dev/null | git-fast-import --date-format=rfc2822 --import-marks=../git-import-marks2 --export-marks=../git-import-marks2
20 ../../mtn2git/mtn2git.py --db ../../OE.mtn --marks=../mtn2git-marks --status=../mtn2git-status.v2 | git-fast-import --date-format=rfc2822 --import-marks=../git-import-marks2 --export-marks=../git-import-marks2
21
22
23
24 # Push all changes to the server, update the master tag as well
25 for branch in `mtn --db ../../OE.mtn ls branches`;
26 do
27     git-push --force git+ssh://zecke2@repo.or.cz/srv/git/org.openembedded.dev.git $branch;
28 done
29
30 #dev is our master
31 git-push --force git+ssh://ABC@repo.or.cz/srv/git/org.openembedded.dev.git org.openembedded.dev:master;
32