summaryrefslogtreecommitdiff
path: root/contrib/mtn2git/update-script.example
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2008-04-05 22:07:14 +0000
committerMichael Lauer <mickey@vanille-media.de>2008-04-05 22:07:14 +0000
commitbf39bb6e3fabae6da5f9b8084f8d478f07e4836c (patch)
treefa86a0ab3b29ca6e78f34c99ba3b649d8e6a344a /contrib/mtn2git/update-script.example
parent2b5295d1ca8c5f876e8b6a5592706b751f03a401 (diff)
parent58ec003f0bbcaaa89c6080b675726bac9b952e29 (diff)
merge of '2bc71b9b93f22417784c3a4ed3576a76841878f2'
and 'edac95232b05ccd8efaeee530e0442683d1ef50a'
Diffstat (limited to 'contrib/mtn2git/update-script.example')
-rw-r--r--contrib/mtn2git/update-script.example32
1 files changed, 32 insertions, 0 deletions
diff --git a/contrib/mtn2git/update-script.example b/contrib/mtn2git/update-script.example
new file mode 100644
index 0000000000..3b23e19a49
--- /dev/null
+++ b/contrib/mtn2git/update-script.example
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+export PATH=/home/zecke/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
+
+cd $HOME/mtn2git-scm/oe-convert/
+
+# Update monotone
+mtn --db ../OE.mtn pull monotone.linuxtogo.org "org.openembedded.*"
+
+OLD_OE_DIR=openembedded-git.$$.$RANDOM
+
+git-clone -l openembedded-git $OLD_OE_DIR
+cp git-import-marks2 $OLD_OE_DIR/
+cp mtn2git-status.v2 $OLD_OE_DIR/
+cp mtn2git-marks $OLD_OE_DIR/
+
+cd openembedded-git
+# Convert (this could fail as our marks are not complete...) and we hardcode the revision
+#../../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
+../../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
+
+
+
+# Push all changes to the server, update the master tag as well
+for branch in dev dreambox documentation oetest oz354x packaged-staging oz354fam083 angstrom-2007.12-stable entity stable;
+do
+ git-push --force git+ssh://ABC@repo.or.cz/srv/git/org.openembedded.dev.git org.openembedded.$branch;
+done
+
+#dev is our master
+git-push --force git+ssh://ABC@repo.or.cz/srv/git/org.openembedded.dev.git org.openembedded.dev:master;
+