3 if [ "$1" == "-v" ]; then
10 if [ ! "$CVSROOT" ] ||
[ ! "$MODULE" ] ||
[ ! -d $CVSROOT ] ||
[ ! -d $CVSROOT/CVSROOT
] ||
[ ! -d $CVSROOT/$MODULE ] ; then
11 echo "Usage: git cvsimport <cvsroot> <module>"
15 cvsps
-h 2>&1 |
grep -q "cvsps version 2.1" >& /dev
/null ||
{
16 echo "I need cvsps version 2.1"
20 mkdir
"$MODULE" ||
exit 1
23 TZ
=UTC cvsps
-A $MODULE | git-cvs2git
$ARGS --cvsroot="$CVSROOT" --module="$MODULE" > .git-create-script ||
exit 1