summaryrefslogtreecommitdiffstats
path: root/doc/list-man-pages.sh
blob: fef237cb47659ceeb4895c85210a001e9afcf6cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

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