summaryrefslogtreecommitdiffstats
path: root/scripts/kernel-doc-check
blob: 23887d0da35ce11374311ddd07eb0769c9f58602 (plain)
1
2
3
4
5
6
7
8
9
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 ]