]> git.ipfire.org Git - thirdparty/systemd.git/blame - tools/add-git-hook.sh
final v236 update (#7649)
[thirdparty/systemd.git] / tools / add-git-hook.sh
CommitLineData
003c8879
ZJS
1#!/bin/sh -eu
2
3cd "$MESON_SOURCE_ROOT"
4
5if [ ! -f .git/hooks/pre-commit.sample -o -f .git/hooks/pre-commit ]; then
6 exit 2 # not needed
7fi
8
9cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit
10chmod +x .git/hooks/pre-commit
11echo 'Activated pre-commit hook'