project: Remove git hooks

These just didn't work as expected, and now that clang-format is integrated into the CMake project they are also no longer needed.
This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2019-12-24 08:22:06 +01:00
parent 3018c9b9ea
commit a3b1fc0b2e
2 changed files with 0 additions and 15 deletions

View file

@ -1,7 +0,0 @@
#!/bin/bash
if ! hash clang-format 2>/dev/null; then
echo "'clang-format' must be installed in a global environment."
exit 1
fi
find ./source -type f -name "*.h" -or -name "*.hpp" -or -name "*.c" -or -name "*.cpp" -exec clang-format -i '{}' \;

View file

@ -1,8 +0,0 @@
#!/bin/bash
readarray -t hooks < <(find .hooks/ -maxdepth 1 -type d -not -wholename .hooks/ -print0)
for v in "${hooks[@]}"; do
hookname=`basename $v`
echo "#!/bin/bash" > .git/hooks/${hookname}
echo "find .hooks/${hookname}/ -type f -name '*.sh' -exec '{}' \;" >> .git/hooks/${hookname}
done