From: Pauli Date: Fri, 21 May 2021 05:16:18 +0000 (+1000) Subject: doc: process images when installing X-Git-Tag: openssl-3.0.0-beta1~433 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f90040f80512cb5905214f1a420e8aab31deb706;p=thirdparty%2Fopenssl.git doc: process images when installing Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/15399) --- diff --git a/doc/build.info b/doc/build.info index f64919a7c41..55e7fff306c 100644 --- a/doc/build.info +++ b/doc/build.info @@ -346,6 +346,7 @@ DEPEND[html/man1/tsget.html]=man1/tsget.pod GENERATE[html/man1/tsget.html]=man1/tsget.pod DEPEND[man/man1/tsget.1]=man1/tsget.pod GENERATE[man/man1/tsget.1]=man1/tsget.pod +IMAGEDOCS[man1]= HTMLDOCS[man1]=html/man1/CA.pl.html \ html/man1/openssl-asn1parse.html \ html/man1/openssl-ca.html \ @@ -2818,6 +2819,7 @@ DEPEND[html/man3/s2i_ASN1_IA5STRING.html]=man3/s2i_ASN1_IA5STRING.pod GENERATE[html/man3/s2i_ASN1_IA5STRING.html]=man3/s2i_ASN1_IA5STRING.pod DEPEND[man/man3/s2i_ASN1_IA5STRING.3]=man3/s2i_ASN1_IA5STRING.pod GENERATE[man/man3/s2i_ASN1_IA5STRING.3]=man3/s2i_ASN1_IA5STRING.pod +IMAGEDOCS[man3]= HTMLDOCS[man3]=html/man3/ADMISSIONS.html \ html/man3/ASN1_INTEGER_get_int64.html \ html/man3/ASN1_INTEGER_new.html \ @@ -4006,6 +4008,7 @@ DEPEND[html/man5/x509v3_config.html]=man5/x509v3_config.pod GENERATE[html/man5/x509v3_config.html]=man5/x509v3_config.pod DEPEND[man/man5/x509v3_config.5]=man5/x509v3_config.pod GENERATE[man/man5/x509v3_config.5]=man5/x509v3_config.pod +IMAGEDOCS[man5]= HTMLDOCS[man5]=html/man5/config.html \ html/man5/fips_config.html \ html/man5/x509v3_config.html @@ -4434,6 +4437,9 @@ DEPEND[html/man7/x509.html]=man7/x509.pod GENERATE[html/man7/x509.html]=man7/x509.pod DEPEND[man/man7/x509.7]=man7/x509.pod GENERATE[man/man7/x509.7]=man7/x509.pod +IMAGEDOCS[man7]=man7/img/kdf.png \ +man7/img/mac.png \ +man7/img/rand.png HTMLDOCS[man7]=html/man7/EVP_ASYM_CIPHER-SM2.html \ html/man7/EVP_KDF-HKDF.html \ html/man7/EVP_KDF-KB.html \ diff --git a/doc/build.info.in b/doc/build.info.in index 408c1688184..fa1962f3825 100644 --- a/doc/build.info.in +++ b/doc/build.info.in @@ -7,8 +7,11 @@ SUBDIRS = man1 my $sourcedir = catdir($config{sourcedir}, 'doc'); foreach my $section ((1, 3, 5, 7)) { + my @imagefiles = (); my @htmlfiles = (); my @manfiles = (); + my %pngfiles = + map { $_ => 1 } glob catfile($sourcedir, "man$section", "img", "*.png"); my %podfiles = map { $_ => 1 } glob catfile($sourcedir, "man$section", "*.pod"); my %podinfiles = @@ -62,6 +65,15 @@ DEPEND[$podfile]{pod}=$podinfile GENERATE[$podfile]=$podinfile _____ } + + foreach my $p (sort keys %pngfiles) { + my $relpath = abs2rel($p, $sourcedir); + my $imagefile = abs2rel(catfile($buildtop, "doc", "$relpath"), + catdir($buildtop, "doc")); + push @imagefiles, $imagefile; + } + + $OUT .= "IMAGEDOCS[man$section]=" . join(" \\\n", @imagefiles) . "\n"; $OUT .= "HTMLDOCS[man$section]=" . join(" \\\n", @htmlfiles) . "\n"; $OUT .= "MANDOCS[man$section]=" . join(" \\\n", @manfiles) . "\n"; }