git-commit-vandalism/git-cvsimport-script
Tommy M. McGuire 667628d97a [PATCH] cvsimport: allow remote CVS repos
Remove unneeded sanity tests.  Remote repositories do, indeed, just
work.

Signed-off-by: Tommy McGuire <mcguire@crsr.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-12 20:48:18 -07:00

26 lines
493 B
Bash
Executable File

#!/bin/sh
ARGS=""
if [ "$1" == "-v" ]; then
ARGS=$1
shift
fi
export CVSROOT="$1"
export MODULE="$2"
if [ ! "$CVSROOT" ] || [ ! "$MODULE" ] ; then
echo "Usage: git cvsimport <cvsroot> <module>"
exit 1
fi
cvsps -h 2>&1 | grep -q "cvsps version 2.1" >& /dev/null || {
echo "I need cvsps version 2.1"
exit 1
}
mkdir "$MODULE" || exit 1
cd "$MODULE"
TZ=UTC cvsps -A $MODULE | git-cvs2git $ARGS --cvsroot="$CVSROOT" --module="$MODULE" > .git-create-script || exit 1
sh .git-create-script