blob: b5a1511476f98fd16a8630d2dc8230cb19355cbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
# gentoo-infra: infra/githooks.git:local/post-receive
declare -a HOOKS=(
hooks/post-receive.gentoo-commits
hooks/post-receive.cfengine-sync
hooks/post-receive.dns-sync
hooks/post-receive.masterportage-acl-sync
hooks/post-receive.puppet-sync
)
stdin=$(cat)
for hook in ${HOOKS[@]}; do
if [[ -x ${hook} ]]; then
echo "${stdin}" | ./"${hook}"
fi
done
|