[openssl-commits] [web] master update

Richard Levitte levitte at openssl.org
Tue Jan 29 12:35:02 UTC 2019


The branch master has been updated
       via  04c0cb565a81ed4357722dcce70c50b3575e2863 (commit)
      from  895ee9dcaa50a72637b907dd3ab62723e23863f9 (commit)


- Log -----------------------------------------------------------------
commit 04c0cb565a81ed4357722dcce70c50b3575e2863
Author: Richard Levitte <levitte at openssl.org>
Date:   Tue Jan 29 13:29:23 2019 +0100

    mk-apropos: don't include non-manpage files
    
    mk-apropos looks at all HTML files in a given directory, but failed to
    recognise files that aren't rendered manpage, such as index.html.
    
    Reviewed-by: Tim Hudson <tjh at openssl.org>
    (Merged from https://github.com/openssl/web/pull/109)

-----------------------------------------------------------------------

Summary of changes:
 bin/mk-apropos | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/bin/mk-apropos b/bin/mk-apropos
index a9dd5b6..64899a4 100755
--- a/bin/mk-apropos
+++ b/bin/mk-apropos
@@ -6,6 +6,11 @@ cd $dir
 
 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 .html`
     origmanfile=`echo $manfile | sed -e "s|^$subdir|$origsubdir|"`


More information about the openssl-commits mailing list