[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62648] forthcoming build problem with texinfo
From: |
Arun Giridhar |
Subject: |
[Octave-bug-tracker] [bug #62648] forthcoming build problem with texinfo>6.8 |
Date: |
Thu, 13 Oct 2022 11:56:20 -0400 (EDT) |
Follow-up Comment #2, bug #62648 (project octave):
Thank you, gabriele.
Here's gabriele's patch converted to an hg patch against current sources:
diff -r f21b233f3274 doc/interpreter/mk-qthelp.pl
--- a/doc/interpreter/mk-qthelp.pl Thu Oct 13 11:27:35 2022 +0200
+++ b/doc/interpreter/mk-qthelp.pl Thu Oct 13 11:48:40 2022 -0400
@@ -26,8 +26,9 @@ if ($#ARGV != 1)
open (my $HTML, "<", $htmlfname) or die "Unable to open $htmlfname";
# Skip through preamble of file to find start of list
-while (($_ = <$HTML>) !~ /^<div class="contents">/ ) {;}
-while (($_ = <$HTML>) !~ /^<ul class="no-bullet">/ ) {;}
+while (<$HTML>) {next if $_ !~ /^<div class="contents">/; last;}
+while (<$HTML>) {next if $_ !~ /^<ul class="toc-numbered-mark">/; last;}
+ die "index.html: reached EOF: bait changed?" if eof($HTML);
$level = 0;
while (<$HTML>)
@@ -68,7 +69,8 @@ die "Failed to parse index.html" if ($le
open ($HTML, "<", $htmlfname) or die "Unable to open $htmlfname";
# Skip through preamble of file to find start of list
-while (($_ = <$HTML>) !~ /^<table class="index-fn/ ) {;}
+while(<$HTML>) {next if $_ !~ /^<table class="fn-entries/; last;}
+ die "Function-Index.html: reached EOF: bait changed?" if eof($HTML);
while (<$HTML>)
{
My Texinfo version is 6.8, texi2html version is 5.0, and the patch above
causes it to error out with this:
index.html: reached EOF: bait changed? at ../doc/interpreter/mk-qthelp.pl line
31, <$HTML> line 847.
make[2]: *** [Makefile:31302: doc/interpreter/octave_interpreter.qhc] Error
255
I'll test it again when the system Texinfo upgrades.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62648>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/