#!/usr/bin/env sh set -e # pre-commit cat > ./.git/hooks/pre-commit < ".SRCINFO" && git add ".SRCINFO" EOF chmod +x ./.git/hooks/pre-commit