+#!/bin/sh
+set -e
+
+if [ ! -d '.git' ]; then
+ echo "Cannot find .git/, please run me from your cloned repo's top directory!"
+elif [ ! -f '.git/hooks/pre-commit' ]; then
+ echo 'Linking pre-commit hook.'
+ cd .git/hooks/
+ ln -s ../../scripts/pre-commit
+fi