Created
April 14, 2010 06:55
-
-
Save apk/365530 to your computer and use it in GitHub Desktop.
Import cvs tree into git repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Arg: path/to/module/in/cvs | |
# Run git-cvsimport and place result in subdir cvs.path.to.module.in.cvs | |
# or update git repo there if already existing (incremental fetch should work) | |
# Fix to your cvs credentials | |
p="$1" | |
d="cvs.`echo $p | tr / .`" | |
test -d "$d" || mkdir "$d" | |
cd "$d" || exit 1 | |
git cvsimport -p x -v -k -a -d :pserver:me@cvshost:/opt/cvs "$p" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment