The branch master has been updated
       via  f6f50f59aea1b6ec6d9cf6849a1866dd1db8cb20 (commit)
      from  73fe28cd382b6b5fb3c84ec227e8dedce23c2ac4 (commit)


- Log -----------------------------------------------------------------
commit f6f50f59aea1b6ec6d9cf6849a1866dd1db8cb20
Author: Richard Levitte <levi...@openssl.org>
Date:   Thu Feb 28 15:54:12 2019 +0100

    bin/mk-manpages: allow slashes in names
    
    The names in the NAME section may describe headers, which contain a slash
    for OpenSSL headers.  We deal with that by converting slashes to dashes
    for the file names.
    
    Reviewed-by: Matt Caswell <m...@openssl.org>
    (Merged from https://github.com/openssl/web/pull/123)

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

Summary of changes:
 bin/mk-manpages | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/mk-manpages b/bin/mk-manpages
index b756128..bc9c793 100755
--- a/bin/mk-manpages
+++ b/bin/mk-manpages
@@ -65,7 +65,9 @@ sub main {
                 print $fh $out or $class->die("Can't print $outinc: $!");
                 close($fh) or $class->die("Can't close $outinc: $!");
 
-                foreach my $htmlname (@{$data{names}}) {
+                foreach my $htmlname (
+                    map { (my $x = $_) =~ s|/|-|g; $x }
+                        @{$data{names}}) {
                     my $htmlfile = File::Spec->catdir( $data{sect},
                                                        "$htmlname.html" );
                     my $outhtml = File::Spec->catfile( $wwwdir, $htmlfile );

Reply via email to