Last change
on this file since 1901 was
1901,
checked in by andersk, 16 years ago
|
Partial work on a svn-all-fast-export based Git migrator.
|
-
Property svn:executable set to
*
|
File size:
515 bytes
|
Rev | Line | |
---|
[1901] | 1 | #!/bin/bash |
---|
| 2 | set -e |
---|
| 3 | |
---|
| 4 | mako-render rules.mako > rules |
---|
| 5 | |
---|
| 6 | rm git -rf |
---|
| 7 | mkdir git |
---|
| 8 | cd git |
---|
| 9 | |
---|
| 10 | sed -n 's/^create repository // p' ../rules | while read repo; do |
---|
| 11 | mkdir -p "$repo" && GIT_DIR="$repo" git init --bare |
---|
| 12 | done |
---|
| 13 | |
---|
| 14 | echo run > ../run.gdb |
---|
| 15 | gdb -batch -x ../run.gdb --args svn-all-fast-export ../rules /home/anders/xvm/svn |
---|
| 16 | |
---|
| 17 | sed -n 's/^create repository // p' ../rules | while read repo; do |
---|
| 18 | ! [ -e "$repo/refs/heads/tags" ] || \ |
---|
| 19 | cp -a "$repo/refs/heads/tags/." "$repo/refs/tags" && \ |
---|
| 20 | rm -rf "$repo/refs/heads/tags" |
---|
| 21 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.