diff --git a/tools/install-git-hooks.sh b/tools/install-git-hooks.sh new file mode 100755 index 0000000..4823160 --- /dev/null +++ b/tools/install-git-hooks.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env sh + +set -eu +cd "$(dirname "$(realpath "$0")")/.." + +echo "#!/bin/sh +set -eu +./tools/readme.go > README.md +git add README.md +" >.git/hooks/pre-commit +chmod +x .git/hooks/pre-commit