2 # id-cvs-to-git.sh: Creates new bare Git Project from CVS
7 id-cvs-to-git.sh source project description
9 source: is a GIT project source or 'CVS'
10 project: is the GIT project name (destination) and project source (If CVS)
11 description: description for the project
13 Convert YAZ from CVS to Git
14 id-cvs-to-git.sh CVS yaz "Yet another Z39.50 toolkit"
16 Make bare new Git project from existing Git repo ../newproject
17 id-cvs-to-git.sh ../newproject newproject "My new project"
25 if test -z "$SRC"; then
30 echo "Error: Missing Project"
34 if test -z "$DESC"; then
35 echo "Error: Missing Description"
39 if test "$SRC" = "CVS"; then
43 git-cvsimport -u -A ../import.names -v $P
45 git clone --bare import_project ${P}.git
47 git clone --bare ${SRC} ${P}.git
49 touch ${P}.git/git-daemon-export-ok
50 echo $DESC > ${P}.git/description