diff options
author | Igor Wiedler <igor@wiedler.ch> | 2010-06-26 13:38:50 +0200 |
---|---|---|
committer | Chris Smith <toonarmy@phpbb.com> | 2010-07-12 02:04:29 +0100 |
commit | 14e5da90c3d84cb089e1df4d7a0ac7a34a0fbeba (patch) | |
tree | ebb4700c81c7d1c0413836b7a041938d052fc2f1 /git-tools/hooks/install | |
parent | 6b2f4b6a850493fa0277ae38ee816d7c5a3a2311 (diff) | |
download | forums-14e5da90c3d84cb089e1df4d7a0ac7a34a0fbeba.tar forums-14e5da90c3d84cb089e1df4d7a0ac7a34a0fbeba.tar.gz forums-14e5da90c3d84cb089e1df4d7a0ac7a34a0fbeba.tar.bz2 forums-14e5da90c3d84cb089e1df4d7a0ac7a34a0fbeba.tar.xz forums-14e5da90c3d84cb089e1df4d7a0ac7a34a0fbeba.zip |
[task/git-tools] add install and uninstall scripts for hooks
PHPBB3-9769
Diffstat (limited to 'git-tools/hooks/install')
-rwxr-xr-x | git-tools/hooks/install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/git-tools/hooks/install b/git-tools/hooks/install new file mode 100755 index 0000000000..a42c55a769 --- /dev/null +++ b/git-tools/hooks/install @@ -0,0 +1,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 |