summaryrefslogtreecommitdiffstats
path: root/doc/build.info.in
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2021-05-21 15:16:18 +1000
committerPauli <pauli@openssl.org>2021-05-22 15:33:53 +1000
commitf90040f80512cb5905214f1a420e8aab31deb706 (patch)
tree3f618d746eb67a5c90dd852ff593a9b8eba6f838 /doc/build.info.in
parent1d95931d5613163224cb2cb4202e32e16cd1c8db (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/build.info.in')
-rw-r--r--doc/build.info.in12
1 files changed, 12 insertions, 0 deletions
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";
}