[FFmpeg-cvslog] doc/t2h.pm: fix missing TOC with texinfo 6.8 and above

Matthew White git at videolan.org
Sun Nov 14 06:07:00 EET 2021


ffmpeg | branch: master | Matthew White <mehw.is.me at inventati.org> | Sun Nov 14 01:10:58 2021 +0000| [bfbd5954e50e407693932b3900ca77c3daee26d7] | committer: Gyan Doshi

doc/t2h.pm: fix missing TOC with texinfo 6.8 and above

Since texinfo 6.8, there's no longer an INLINE_CONTENTS variable.

makeinfo: warning: set_from_init_file: unknown variable INLINE_CONTENTS

texinfo commit 62a6adfb33b006e187483779974bbd45f0f782b1 replaced
INLINE_CONTENTS with OUTPUT_CONTENTS_LOCATION.

texinfo commit 41f8ed4eb42bf6daa7df7007afd946875597452d replaced
OUTPUT_CONTENTS_LOCATION with CONTENTS_OUTPUT_LOCATION.

With texinfo 6.8 and above, the same as INLINE_CONTENTS=1 could be
achieved by CONTENTS_OUTPUT_LOCATION=inline.
https://www.gnu.org/software/texinfo/manual/texinfo/html_node/HTML-Customization-Variables.html

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=bfbd5954e50e407693932b3900ca77c3daee26d7
---

 doc/t2h.pm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/doc/t2h.pm b/doc/t2h.pm
index 87412699aa..d07d974286 100644
--- a/doc/t2h.pm
+++ b/doc/t2h.pm
@@ -131,7 +131,11 @@ my $program_version_num = version->declare(get_conf('PACKAGE_VERSION'))->numify;
 my $program_version_6_8 = $program_version_num >= 6.008000;
 
 # print the TOC where @contents is used
-set_from_init_file('INLINE_CONTENTS', 1);
+if ($program_version_6_8) {
+    set_from_init_file('CONTENTS_OUTPUT_LOCATION', 'inline');
+} else {
+    set_from_init_file('INLINE_CONTENTS', 1);
+}
 
 # make chapters <h2>
 set_from_init_file('CHAPTER_HEADER_LEVEL', 2);



More information about the ffmpeg-cvslog mailing list