projects
/
git-tools-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix upload (copies only essential files now)
[git-tools-moved-to-github.git]
/
id-new-project
/
id-new-project.sh
diff --git
a/id-new-project/id-new-project.sh
b/id-new-project/id-new-project.sh
index
803622e
..
3fa1bcc
100755
(executable)
--- a/
id-new-project/id-new-project.sh
+++ b/
id-new-project/id-new-project.sh
@@
-1,8
+1,9
@@
#!/bin/sh
usage() {
#!/bin/sh
usage() {
+ echo ""
echo "Usage:"
echo "Usage:"
- echo "id-new-project.sh srcdir description {pub/private}"
+ echo "id-new-project.sh srcdir description {pub/private/admin}"
echo "For example:"
echo "id-new-project.sh ../myproj \"Which does good things\" private"
exit 1
echo "For example:"
echo "id-new-project.sh ../myproj \"Which does good things\" private"
exit 1
@@
-12,9
+13,10
@@
SRC=$1
DESC=$2
TYPE=$3
DESC=$2
TYPE=$3
-if test -z "${TYPE}"; then
- usage
-fi
+case "${TYPE}" in
+ pub | private | admin ) ;;
+ * ) echo "invalid type: '$TYPE', use pub or private or admin "; usage ;;
+esac
if test ! -e post-receive; then
echo "file post-receive must be in the current directory"
if test ! -e post-receive; then
echo "file post-receive must be in the current directory"
@@
-39,7
+41,7
@@
if git clone --bare $SRC ${PROJ}.git; then
chmod +x hooks/post-receive
git config hooks.mailinglist gitid@indexdata.dk
cd ..
chmod +x hooks/post-receive
git config hooks.mailinglist gitid@indexdata.dk
cd ..
- scp -r ${PROJ}.git git.indexdata.com:/home/git/${TYPE}
- ssh git.indexdata.com "cd /home/git/${TYPE}/${PROJ}.git && chmod -R g+w . && chgrp -R git . && find . -type d | xargs chmod g+s"
+ scp -P 222 -r ${PROJ}.git git.indexdata.com:/home/git/${TYPE}
+ 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"
fi
fi