aboutsummaryrefslogtreecommitdiff
blob: c6fc8593d714dd17716a4a49806522e705d0fe56 (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