]>
Commit | Line | Data |
---|---|---|
7629744a | 1 | #!/bin/sh |
9ee03516 | 2 | # SPDX-License-Identifier: LGPL-2.1-or-later |
7629744a | 3 | set -eu |
003c8879 | 4 | |
3b6fd3c1 | 5 | cd "${MESON_SOURCE_ROOT:?}" |
003c8879 | 6 | |
f1e9e804 DDM |
7 | ret=2 |
8 | ||
9 | if [ -f .git/hooks/pre-commit.sample ] && [ ! -f .git/hooks/pre-commit ]; then | |
10 | cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit | |
11 | chmod +x .git/hooks/pre-commit | |
12 | echo 'Activated pre-commit hook' | |
13 | ret=0 | |
14 | fi | |
15 | ||
f1e9e804 | 16 | exit $ret |