aboutsummaryrefslogtreecommitdiffstats
path: root/git-tools/hooks/install
blob: a42c55a769ca8471e9ae8c93ec7e73ef3269e76f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
#
# Script to install the git hooks
# by symlinking them into the .git/hooks directory
#
# Usage (from within git-tools/hooks):
# ./install

dir=$(dirname $0)

for file in $(ls $dir)
do
	if [ $file != "install" ] && [ $file != "uninstall" ]
	then
		ln -s "../../git-tools/hooks/$file" "$dir/../../.git/hooks/$file"
	fi
done