6 echo "id-new-project.sh srcdir description {pub/private/admin}"
8 echo "id-new-project.sh ../myproj \"Which does good things\" private"
17 pub | private | admin ) ;;
18 * ) echo "invalid type: '$TYPE', use pub or private or admin "; usage ;;
21 if test ! -e post-receive; then
22 echo "file post-receive must be in the current directory"
28 if test -d ${PROJ}.git; then
29 echo "${PROJ}.git already exists"
34 if git clone --bare $SRC ${PROJ}.git; then
36 touch git-daemon-export-ok
37 echo "${DESC}" >description
38 git config core.sharedRepository true
39 git config core.ignorecase true
40 cp ../post-receive hooks/post-receive
41 chmod +x hooks/post-receive
42 git config hooks.mailinglist gitid@indexdata.dk
44 scp -P 222 -r ${PROJ}.git git.indexdata.com:/home/git/${TYPE}
45 ssh -p 222 git.indexdata.com "cd /home/git/${TYPE}/${PROJ}.git && chmod -R g+w . && chgrp -R git . && find . -type d | xargs chmod g+s"