aboutsummaryrefslogtreecommitdiff
blob: 0b56e3202a308437f101541a676c6082bb8aa95c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# gentoo-infra: infra/githooks.git:local/pre-receive

HOOKS="
hooks/pre-receive.gentoo-news
"

stdin=$(cat)

for hook in $HOOKS; do
	if [ -x "${hook}" ]; then
		echo "${stdin}" | ./"$hook"
	fi
done