I add an autogen.sh script to all my repositories that does things like this as it's first action.
You can also set up a central git template repository, so hooks get automatically added into every repository you clone
You can also set up a central git template repository, so hooks get automatically added into every repository you clone