2 # id-cvs-to-git.sh: Creates new bare Git Project from CVS
5 # id-cvs-to-git.sh source project description
6 # source: is a GIT project source or 'CVS'
7 # project: is the GIT project name (destination) and project source (If CVS)
8 # description: description for the project
10 # Convert YAZ from CVS to Git and upload:
11 # id-cvs-to-git.sh CVS yaz "Yet another Z39.50 toolkit"
12 # Upload new project 'newproject' from repository ../newproject
13 # ic-cvs-to-git.sh ../newproject newproject "My new project"
18 if test -z "$SRC"; then
19 echo "Missing Source (CVS=get from CVS)"
23 echo "Missing Project"
26 if test -z "$DESC"; then
27 echo "Missing Description"
30 if test "$SRC" = "CVS"; then
34 git-cvsimport -u -A ../import.names -v $P
36 git clone --bare import_project ${P}.git
38 git clone --bare ${SRC} ${P}.git
40 touch ${P}.git/git-daemon-export-ok
41 echo $DESC > ${P}.git/description