#!/bin/sh for d in *.git; do cp BIN/post-receive-stagit $d/hooks/ chmod +x $d/hooks/post-receive-stagit done