Revert "Convert SSI includes to tt includes in manpages"
[openssl-web.git] / bin / mk-apropos
index 125faa17f9ba1af7a32d80723fcfb3c2d1555b2b..64899a4d33ce81b01016ca2e1702976623695435 100755 (executable)
@@ -4,15 +4,15 @@
 dir=$1
 cd $dir
 
-for m in `find . -name '*.md.tt' | sort`; do
-    description=`grep '^OSSL-description:' $m | sed -e 's|^[^:]*: *||' -e 's|^ *"||' -e 's|" *||'`
+for m in `find . -name '*.html' | sort`; do
+    description=`grep -F '<!-- OSSL: description:' $m | sed -e 's|^[^:]*: *||' -e 's|^[^:]*: *||' -e 's| *-->||'`
     # If there isn't a description, it isn't a manpage and should not be
     # included
     if [ "$description" = "" ]; then
        continue
     fi
     manfile=`echo $m | sed -e 's|\./||'`
-    manname=`basename $manfile .md.tt`
+    manname=`basename $manfile .html`
     origmanfile=`echo $manfile | sed -e "s|^$subdir|$origsubdir|"`
-    echo "| [$manname]($manname.html) | $description |"
+    echo "<tr><td><a href=\"$manfile\">$manname</a></td><td>$description</td></tr>"
 done