mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
.github/workflows: Use checkpatch scripts
Inroduce several checkpatch scripts to use in workflows.
This commit is contained in:
13
scripts/checkpatch_diff
Executable file
13
scripts/checkpatch_diff
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
rootdir=$(readlink -f $(dirname $0)/..)
|
||||
scriptsdir=${rootdir}/scripts
|
||||
base_commit=${1:-master}
|
||||
|
||||
err=0
|
||||
|
||||
(cd ${rootdir} && git diff ${base_commit} | ${scriptsdir}/checkpatch -) || err=1
|
||||
|
||||
exit $err
|
||||
Reference in New Issue
Block a user