summaryrefslogtreecommitdiff
path: root/git2svn-sync
blob: b63d46887548e1af74d065679c6e7dc89a5ff698 (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/sh
#
# Sync git repository to subversion repository.
# 
# Based on http://google-opensource.blogspot.com/2008/05/export-git-project-to-google-code.html

if [ $# -lt 2 ] ; then
	echo "usage: ${0} GIT_REPO GIT_SVN_REPO_CHECKOUT"
	exit 2
fi

GIT_REPO=$1
GIT_SVN_REPO_CHECKOUT=$2

if [ ! -d $GIT_SVN_REPO_CHECKOUT/.git/svn ] ; then
	echo "error: no git-svn checkout found in $GIT_SVN_REPO_CHECKOUT"
	exit 3
fi

p=$(pwd)
cd $GIT_SVN_REPO_CHECKOUT
git fetch $GIT_REPO
git branch tmp $(cut -b-40 .git/FETCH_HEAD)
git tag -a -m "Last fetch" newlast tmp
git rebase --onto master last tmp
git branch -M tmp master
git svn dcommit
mv $GIT_SVN_REPO_CHECKOUT/.git/refs/tags/newlast \
	$GIT_SVN_REPO_CHECKOUT/.git/refs/tags/last

cd $p

# vim:ft=sh
lass='deletions'>-2/+3 2011-11-08m68k/irq: Remove obsolete support for user vector interrupt fixupsGeert Uytterhoeven1-3/+1 2011-11-08m68k/irq: Remove obsolete m68k irq frameworkGeert Uytterhoeven1-63/+0 2011-11-08m68k/irq: Add genirq supportGeert Uytterhoeven1-9/+32 2011-11-08m68k/irq: Rename {,__}m68k_handle_int()Geert Uytterhoeven1-2/+2 2011-11-08m68k/irq: Add m68k_setup_irq_controller()Geert Uytterhoeven1-0/+2 2011-11-08m68k/irq: Switch irq_chip methods to "struct irq_data *data"Geert Uytterhoeven1-6/+7 2011-11-08m68k/irq: Rename irq_node to irq_dataGeert Uytterhoeven1-4/+5 2011-11-08m68k/irq: Kill irq_node_t typedef, always use struct irq_nodeGeert Uytterhoeven1-4/+4 2011-11-08m68k/irq: Rename irq_controller to irq_chipGeert Uytterhoeven1-8/+7 2011-07-25m68knommu: Move forward declaration of do_IRQ() from machdep.h to irq.hGeert Uytterhoeven1-0/+2 2011-07-25m68k: merge MMU and non-MMU versions of asm/hardirq.hGreg Ungerer1-9/+0