mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
18 lines
334 B
Plaintext
18 lines
334 B
Plaintext
|
#!/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
|