File: kernel-doc-check

package info (click to toggle)
libnvme 1.16.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,016 kB
  • sloc: ansic: 35,812; perl: 1,834; sh: 475; python: 194; cpp: 64; makefile: 55
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 ]