From 61d0a8bdffbbb7229776d2f4f2e79ed22d21551f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 1 Jul 2023 00:36:10 +0200 Subject: Merging upstream version 1.5. Signed-off-by: Daniel Baumann --- scripts/list-man-pages.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/list-man-pages.sh (limited to 'scripts/list-man-pages.sh') diff --git a/scripts/list-man-pages.sh b/scripts/list-man-pages.sh new file mode 100755 index 0000000..3acdf7a --- /dev/null +++ b/scripts/list-man-pages.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# SPDX-License-Identifier: LGPL-2.1-or-later + +file=$1 + +for func in $(sed -n 's/ \* \([a-z_][a-z_0-9]*\)() -.*/\1/p' $file); do + echo ${func} +done + +for struct in $(sed -n 's/ \* struct \([a-z_][a-z_0-9]*\) -.*/\1/p' $file); do + echo ${struct} +done + +for enum in $(sed -n 's/ \* enum \([a-z_][a-z_0-9]*\) -.*/\1/p' $file); do + echo ${enum} +done -- cgit v1.2.3