2018-02-11 15:25:10 +05:30
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Script to migrate sysvinit project source code from subversion to git.
|
|
|
|
# Used february 2018.
|
|
|
|
|
|
|
|
authorsmap=$(tempfile)
|
|
|
|
cat > $authorsmap <<EOF
|
|
|
|
pere = Petter Reinholdtsen <pere@hungry.com>
|
|
|
|
wfink = Werner Fink <werner@suse.de>
|
|
|
|
EOF
|
|
|
|
|
|
|
|
git svn clone http://svn.savannah.nongnu.org/svn/sysvinit/sysvinit \
|
|
|
|
--authors-file=$authorsmap \
|
|
|
|
--no-metadata \
|
2018-02-12 04:02:30 +05:30
|
|
|
--tags=tags \
|
|
|
|
--trunk=trunk \
|
|
|
|
--prefix=sysvinit/ \
|
2018-02-11 15:25:10 +05:30
|
|
|
sysvinit-git
|
|
|
|
rm $authorsmap
|
|
|
|
|
2018-02-12 04:02:30 +05:30
|
|
|
(
|
|
|
|
cd sysvinit-git
|
|
|
|
for tag in `git branch -r | grep "tags/" | sed 's/ sysvinit\/tags\///'`; do
|
|
|
|
git tag -a -m"Converting SVN tags" $tag refs/remotes/sysvinit/tags/$tag
|
|
|
|
done
|
|
|
|
)
|
|
|
|
|
2018-02-11 15:25:10 +05:30
|
|
|
(
|
|
|
|
cd sysvinit-git
|
|
|
|
git remote add origin ssh://git.savannah.gnu.org:/srv/git/sysvinit.git
|
|
|
|
)
|