git.cweiske.de
/
paste
/
23.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
(no commit message)
[paste/23.git]
/
custom-post-receive.sh
1
#!/bin/sh
\r
2
# run all post-receive.* hooks in custom-hooks/
\r
3
\r
4
if [ ! -d custom-hooks ]; then
\r
5
exit
\r
6
fi
\r
7
\r
8
FILE="`mktemp`"
\r
9
cat - > "$FILE"
\r
10
for i in custom-hooks/post-receive.*; do
\r
11
[ -x "$i" ] && cat "$FILE" | "$i"
\r
12
done
\r
13
rm "$FILE"
\r