Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F3152133
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/man/api-to-man-page-coverage b/man/api-to-man-page-coverage
index 92e60a5a..b9dc18f4 100755
--- a/man/api-to-man-page-coverage
+++ b/man/api-to-man-page-coverage
@@ -1,33 +1,48 @@
#!/bin/sh
#
# Copyright (C) 2019 Red Hat, Inc. All rights reserved.
#
# Author: Fabio M. Di Nitto <fabbione@kronosnet.org>
#
# This software licensed under GPL-2.0+, LGPL-2.0+
#
err=0
srcdir="$1"
target="$2"
headerapicalls="$(grep ${target}_ "$srcdir"/lib${target}/lib${target}.h | grep -v "^ \*" | grep -v ^struct | grep -v "^[[:space:]]" | grep -v typedef | sed -e 's/(.*//g' -e 's/^const //g' -e 's/\*//g' | awk '{print $2}')"
manpages="$(grep ${target}_ "$srcdir"/man/Makefile.am |grep -v man3 |grep -v xml | sed -e 's/\.3.*//g')"
+echo "Checking for header format errors"
+
+for i in $headerapicalls; do
+ echo "Checking $i"
+ header="$(grep " \* ${i}$" "$srcdir"/lib${target}/lib${target}.h -A2)"
+ brief="$(echo "$header" | tail -n 1 |grep "@brief")"
+ if [ -z "$brief" ]; then
+ echo "Error found in $i doxy header section"
+ echo "$header"
+ echo ""
+ echo "$brief"
+ exit 1
+ fi
+done
+
echo "Checking for symbols in header file NOT distributed as manpages"
for i in $headerapicalls; do
found=0
for x in $manpages; do
if [ "$x" = "$i" ]; then
found=1
break;
fi
done
if [ "$found" = 0 ]; then
echo "API man page $i not found not found in $srcdir/man/Makefile.am"
err=1
fi
done
exit $err
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Feb 24, 4:25 PM (42 m, 30 s ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1464337
Default Alt Text
(1 KB)
Attached To
Mode
rK kronosnet
Attached
Detach File
Event Timeline
Log In to Comment