summaryrefslogtreecommitdiffstats
path: root/doc/list-man-pages.sh
blob: e22691dc418c56a710b32cd4ba3d15fc21b1d22e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
# SPDX-License-Identifier: LGPL-2.1-or-later

file=$1

for func in $(sed -n 's/ \* \([a-z_]*\)() -.*/\1/p' $file); do
	echo ${func}
done

for struct in $(sed -n 's/ \* struct \([a-z_]*\) -.*/\1/p' $file); do
	echo ${struct}
done

for enum in $(sed -n 's/ \* enum \([a-z_]*\) -.*/\1/p' $file); do
	echo ${enum}
done