scripts: add checkpatch.pl & git hooks

Change-Id: I29e5f7a99e8dd92511c0b1d099f3e1a2f37d7a72
This commit is contained in:
Dominique Martinet
2018-06-22 11:04:49 +09:00
committed by Dominique Martinet
parent 9bb8076dc0
commit e770a22fa5
5 changed files with 7980 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#!/bin/sh
CURDIR=$(dirname "$(readlink -m "$0")")
TOPDIR=$(git rev-parse --show-toplevel)
HOOKDIR=$TOPDIR/.git/hooks
cp -f "$CURDIR/pre-commit" "$HOOKDIR"
chmod +x "$HOOKDIR/pre-commit"
cp -f "$CURDIR/commit-msg" "$HOOKDIR"
chmod +x "$HOOKDIR/commit-msg"