]> Cypherpunks.ru repositories - nncp.git/blob - doc/git-bundler.sh
Yet another git-related exec-handler example
[nncp.git] / doc / git-bundler.sh
1 #!/bin/sh -ex
2
3 tmp=$(mktemp)
4
5 cleanup()
6 {
7     rm -f $tmp
8 }
9 trap cleanup HUP PIPE INT QUIT TERM EXIT
10
11 read revs
12 cd $HOME/git/$1.git
13 git bundle create $tmp $revs
14 nncp-file -nice $NNCP_NICE $tmp $NNCP_SENDER:$1-$(date '+%Y%M%d%H%m%S').bundle