First id git tools files.
[git-tools-moved-to-github.git] / id-cvs-to-git.sh
1 #!/bin/sh
2 P=$1
3 DESC="$2"
4 if test -z "$P"; then
5         echo "Missing Project"
6         exit 1
7 fi
8 if test -z "$DESC"; then
9         echo "Missing Description"
10         exit 1
11 fi
12 mkdir import
13 cd import
14 git-cvsimport -A ../import.names -v $P
15 cd ..
16 git clone --bare import ${P}.git
17 touch ${P}.git/git-daemon-export-ok
18 echo $DESC > ${P}.git/description
19 scp -r ${P}.git git.indexdata.com:/var/cache/git