Skip to content

Instantly share code, notes, and snippets.

@apk
apk / do-cvs-fetch
Created April 14, 2010 06:55
Import cvs tree into git repo
#!/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"