]> git.phdru.name Git - git-scripts.git/blob - configure-sf
pull-usrlocalsrc: add git-remote-hg to PATH
[git-scripts.git] / configure-sf
1 #! /bin/sh
2
3 # Origin: http://blog.gorwits.me.uk/index.html%3Fp=529.html
4
5 if [ -z "$3" ]; then
6    echo "Usage: $0 PROJECTNAME REPONAME MLIST prefix [maxlines]" >&2
7    exit 1
8 fi
9
10 PROJECTNAME="$1"
11 REPONAME="$2"
12 MLIST="$3"
13 prefix="$4"
14 maxlines="$5"
15
16 cd /home/git/p/"$PROJECTNAME/$REPONAME".git &&
17 echo "$PROJECTNAME git repository ($REPONAME)" > description
18 #git config --global --bool receive.denyNonFastForwards true &&
19
20 #curl -L -o hooks/post-receive-user https://git.kernel.org/cgit/git/git.git/plain/contrib/hooks/post-receive-email &&
21 #http://tinyurl.com/git-post-commit-email
22 wget -O hooks/post-receive-user https://git.kernel.org/cgit/git/git.git/plain/contrib/hooks/post-receive-email &&
23 chmod u=rwx,go=rx hooks/post-receive-user &&
24
25 #git config hooks.diffopts "--stat --summary --find-copies-harder -p" &&
26 if [ -n "$maxlines" ]; then
27    git config hooks.emailmaxlines "$maxlines"
28 fi &&
29 git config hooks.emailprefix "$prefix" &&
30 git config hooks.envelopesender noreply@sourceforge.net &&
31 git config hooks.mailinglist $MLIST@lists.sourceforge.net &&
32 exec git config hooks.showrev "t=%s; printf 'http://sourceforge.net/p/$PROJECTNAME/$REPONAME/ci/%%s' \$t; echo;echo; git show -C \$t; echo"