2 # Copyright (c) 2007 David Soria Parra <dsp at php dot net>
4 # Licensed under the terms of the MIT License
5 # See /usr/share/doc/gcutils/copyright
6 # or http://www.opensource.org/licenses/mit-license.php
13 git
--version > /dev
/null
17 echo >&2 "Git not found. It's either not installed or not in \$PATH"
21 version
=`git --version | grep -o "[12]\.[5-9]\.[0-9]"`
24 echo "Wrong git version. $prog needs git 1.5.0 or higher, but "`git --version`" found."
31 echo "$PROGNAME: "`basename $0`-$VERSION
36 echo "Usage: "`basename $0`" [OPTIONS]"
40 echo " -gn do not try to merge based on commit messages"
41 echo " -cn do not update the cvs repository"
42 echo " -V show version information"
43 echo " -ga do not fetch recent entries (newer than 10min)"
79 echo >&2 "Parameter $1 is not known."
87 if test ! ".cvs" -o ! -d ".cvs/CVS/"
89 echo >&2 "Cannot found .cvs directory"
93 CVSROOT
=`cat .cvs/CVS/Root`
94 MODULE
=`cat .cvs/CVS/Repository`
96 echo "Repository: $CVSROOT"
97 echo "Module: $MODULE"
99 git-cvsimport
$merge $verbose $recent -d $CVSROOT "$MODULE"
101 if test -n "$cvsupdate"