diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-07-26 05:25:28 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-07-26 05:34:52 +0000 |
commit | 9ecff41dd11e920286f9be670a0ec3a668371d1d (patch) | |
tree | 89c73ab6742847ca5f12056e6c0dd4ec6bbe79d0 /doc/kernel-doc-check | |
parent | Adding debian version 1.0-1. (diff) | |
download | libnvme-9ecff41dd11e920286f9be670a0ec3a668371d1d.tar.xz libnvme-9ecff41dd11e920286f9be670a0ec3a668371d1d.zip |
Merging upstream version 1.1~rc0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'doc/kernel-doc-check')
-rw-r--r-- | doc/kernel-doc-check | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/kernel-doc-check b/doc/kernel-doc-check new file mode 100644 index 0000000..23887d0 --- /dev/null +++ b/doc/kernel-doc-check @@ -0,0 +1,10 @@ +#!/bin/bash +# SPDX-License-Identifier: LGPL-2.1-or-later + +kernel_doc=$(dirname $0)/kernel-doc + +"$kernel_doc" -none "$@" 2>&1 | + grep '\(warning\|error\)' + +# check that kernel-doc succeeded, but the grep failed +[ ${PIPESTATUS[0]} -eq 0 -a ${PIPESTATUS[1]} -eq 1 ] |