File: kernel-doc-check

package info (click to toggle)
libnvme 1.13-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 7,336 kB
  • sloc: ansic: 30,501; perl: 1,834; sh: 436; python: 190; cpp: 64; makefile: 54
file content (10 lines) | stat: -rwxr-xr-x 264 bytes parent folder | download | duplicates (3)
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 ]