diff options
author | Pauli <pauli@openssl.org> | 2021-05-21 15:16:18 +1000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-05-22 15:33:53 +1000 |
commit | f90040f80512cb5905214f1a420e8aab31deb706 (patch) | |
tree | 3f618d746eb67a5c90dd852ff593a9b8eba6f838 /doc | |
parent | 1d95931d5613163224cb2cb4202e32e16cd1c8db (diff) |
doc: process images when installing
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15399)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/build.info | 6 | ||||
-rw-r--r-- | doc/build.info.in | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/doc/build.info b/doc/build.info index f64919a7c4..55e7fff306 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 408c168818..fa1962f382 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"; } |