aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Rostedt (Google) <rostedt@goodmis.org>2022-02-22 19:30:03 -0500
committerSteven Rostedt (Google) <rostedt@goodmis.org>2022-02-23 10:30:29 -0500
commit79c91a849e9d9e33c87a4a6897e0b050a8293421 (patch)
treebaa8f7a1f0dd317d5fcd5cbd5df33ae11f1be542
parent48c0214a573cef00b5a3ad719dfe9547d2ccb362 (diff)
downloadlibtracefs-79c91a849e9d9e33c87a4a6897e0b050a8293421.tar.gz
libtracefs: Do not check libtracefs-options.txt man page
The trace_options man page is there to list options and does not contain any functions. It should be ignored from the check as it does not have functions. Link: https://lore.kernel.org/linux-trace-devel/20220223003012.1334741-3-rostedt@goodmis.org Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
-rwxr-xr-xcheck-manpages.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/check-manpages.sh b/check-manpages.sh
index a522811..b455fec 100755
--- a/check-manpages.sh
+++ b/check-manpages.sh
@@ -15,9 +15,15 @@ cd $1
MAIN=libtracefs
MAIN_FILE=${MAIN}.txt
+# Ignore man pages that do not contain functions
+IGNORE="libtracefs-options.txt"
+
for man in ${MAIN}-*.txt; do
sed -ne '/^NAME/,/^SYNOP/{/^[a-z]/{s/, *$//;s/,/\n/g;s/ //g;s/-.*$/-/;/-/{s/-//p;q};p}}' $man | while read a; do
+ if [ "${IGNORE/$man/}" != "${IGNORE}" ]; then
+ continue
+ fi
if ! grep -q '\*'${a}'\*' $MAIN_FILE; then
if [ "$last" == "" ]; then
echo