home · contact · privacy
Add small script for setting up a proper development environment.
[plomtask] / scripts / setup_dev_environment.sh
1 #!/bin/sh
2 set -e
3
4 if [ ! -d '.git' ]; then
5   echo "Cannot find .git/, please run me from your cloned repo's top directory!" 
6 elif [ ! -f '.git/hooks/pre-commit' ]; then
7   echo 'Linking pre-commit hook.' 
8   cd .git/hooks/
9   ln -s ../../scripts/pre-commit
10 fi