#!/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