Skip to content

Commit

Permalink
collect output messages separately in both runs
Browse files Browse the repository at this point in the history
(but print it for both runs, as in earlier times)
  • Loading branch information
ThomasBreuer committed Nov 10, 2024
1 parent 00294a0 commit 5a34c53
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions doc/make_doc.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ base:="@abs_top_srcdir@";;
books:=["ref", "tut", "hpc", "dev"];;
latexOpts := rec(Maintitlesize := "\\\\fontsize{36}{38}\\\\selectfont");;
UpdateXMLForUserPreferences();
outputstring:= "";;
outputstream:= OutputTextString(outputstring, true);;
SetPrintFormattingStatus(outputstream, false);
SetInfoOutput(InfoGAPDoc, outputstream);
SetInfoOutput(InfoWarning, outputstream);
for run in [1,2] do
# collect output messages separately in both runs
outputstring:= "";;
outputstream:= OutputTextString(outputstring, true);;
SetPrintFormattingStatus(outputstream, false);
SetInfoOutput(InfoGAPDoc, outputstream);
SetInfoOutput(InfoWarning, outputstream);
for book in books do
path := Concatenation(base, "/doc/", book);
dir := Directory(path);
Expand Down Expand Up @@ -70,11 +72,14 @@ for run in [1,2] do
SetGapDocLaTeXOptions("color", latexOpts);
MakeGAPDocDoc( path, "main.xml", files, book, "../..", "MathJax" $NOPDF);;
od;
CloseStream(outputstream);
UnbindInfoOutput(InfoGAPDoc);
UnbindInfoOutput(InfoWarning);
Print(outputstring);
od;
CloseStream(outputstream);
UnbindInfoOutput(InfoGAPDoc);
UnbindInfoOutput(InfoWarning);
Print(outputstring);
# evaluate the outputs for the second run
outputstring:= ReplacedString(outputstring, "\c", "");;
errors:= Filtered(SplitString(outputstring, "\n"),
x -> StartsWith(x, "#W ") and x <> "#W There are overfull boxes:");;
Expand Down

0 comments on commit 5a34c53

Please sign in to comment.