Last change
on this file since 1909 was
1903,
checked in by andersk, 16 years ago
|
Use authors file.
|
-
Property svn:executable set to
*
|
File size:
513 bytes
|
Rev | Line | |
---|
[1901] | 1 | #!/bin/bash |
---|
| 2 | set -e |
---|
| 3 | |
---|
[1902] | 4 | SVN=${1:-/mit/xvm/svn} |
---|
| 5 | |
---|
[1901] | 6 | mako-render rules.mako > rules |
---|
| 7 | |
---|
| 8 | rm git -rf |
---|
| 9 | mkdir git |
---|
| 10 | cd git |
---|
| 11 | |
---|
| 12 | sed -n 's/^create repository // p' ../rules | while read repo; do |
---|
| 13 | mkdir -p "$repo" && GIT_DIR="$repo" git init --bare |
---|
| 14 | done |
---|
| 15 | |
---|
[1903] | 16 | svn-all-fast-export --identity-map <(sed 's/= //' ../authors) ../rules "$SVN" |
---|
[1901] | 17 | |
---|
| 18 | sed -n 's/^create repository // p' ../rules | while read repo; do |
---|
| 19 | ! [ -e "$repo/refs/heads/tags" ] || \ |
---|
| 20 | cp -a "$repo/refs/heads/tags/." "$repo/refs/tags" && \ |
---|
| 21 | rm -rf "$repo/refs/heads/tags" |
---|
| 22 | done |
---|
Note: See
TracBrowser
for help on using the repository browser.