diff options
Diffstat (limited to 'scripts/list-man-pages.sh')
-rwxr-xr-x | scripts/list-man-pages.sh | 16 |
1 files changed, 16 insertions, 0 deletions
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 |