Remove link to GitHub sponsors
[openssl-web.git] / bin / mk-apropos
1 #! /bin/sh
2 # $1 is the top of the manual page tree to look through
3
4 dir=$1
5 cd $dir
6
7 for m in `find . -name '*.html' | sort`; do
8     description=`grep -F '<!-- OSSL: description:' $m | sed -e 's|^[^:]*: *||' -e 's|^[^:]*: *||' -e 's| *-->||'`
9     # If there isn't a description, it isn't a manpage and should not be
10     # included
11     if [ "$description" = "" ]; then
12         continue
13     fi
14     manfile=`echo $m | sed -e 's|\./||'`
15     manname=`basename $manfile .html`
16     origmanfile=`echo $manfile | sed -e "s|^$subdir|$origsubdir|"`
17     echo "<tr><td><a href=\"$manfile\">$manname</a></td><td>$description</td></tr>"
18 done