Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3640)

Issue 5645046: Directs makeinfo and texi2html output to logfiles (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by PhilEHolmes
Modified:
12 years, 2 months ago
Reviewers:
Graham Percival, dak, Julien Rioux, mail
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

New patch set to address JR and GP's helpful comments. I've used $(buildscript-dir)/run-and-check rather than setting another env variable - this is equally as short and so I think OK. Name changed. I'm thinking this is good to go now - please confirm. =============================================== This uses a shell script that I've written to direct the output from a command to a logfile, and to issue a line identifying the logfile if the command fails. I've updated the calls (all of them, I believe) to makeinfo and texi2html to use this script. The result is about 3400 fewer lines output from make doc, and lots of lovely logfiles to check for errors - it makes debugging docs a lot easier. It's slightly non-trivial to test, since neither makeinfo or texi2html stops on errored input by default. If you force it to do so (see below) sample output is: /home/phil/lilypond-git/scripts/build/CheckAndRun.sh "DEPTH=../../.. AJAX_SEARCH= TOP_SRC_DIR=/home/phil/lilypond-git PERL_UNICODE=SD texi2html --error-limit=0 --I=/home/phil/lilypond-git/input/regression/lilypond-book --I=./out-www -I /home/phil/lilypond-git/Documentation --I=/media/IntelSSD/lilypond/lilypond-git/build/./out-www/xref-maps --init-file=/home/phil/lilypond-git/Documentation/lilypond-texi2html.init --output=out-www/collated-files.html out-www/collated-files.texi" "collated-files.texilog.log" Please check the logfile collated-files.texilog.log for errors make[4]: *** [out-www/collated-files.html] Error 2 make[4]: Leaving directory `/media/IntelSSD/lilypond/lilypond-git/build/input/regression/lilypond-book' make[3]: *** [WWW-2] Error 2 make[3]: Leaving directory `/media/IntelSSD/lilypond/lilypond-git/build/input/regression' make[2]: *** [WWW-2] Error 2 make[2]: Leaving directory `/media/IntelSSD/lilypond/lilypond-git/build/input' make[1]: *** [WWW-2] Error 2 make[1]: Leaving directory `/media/IntelSSD/lilypond/lilypond-git/build' make: *** [doc] Error 2 Command exited with non-zero status 2 The logfile that's fingered contains this: *** Duplicate node found: Top (in out-www/papersize-docs.texi l. 8) Max error number exceeded To show this in action, you would need to edit texinfo-vars.make as below. -TEXI2HTML_FLAGS += $(TEXI2HTML_INCLUDES) $(TEXI2HTML_INIT) $(TEXI2HTML_LANG) +TEXI2HTML_FLAGS += --error-limit=0 $(TEXI2HTML_INCLUDES) $(TEXI2HTML_INIT) $(TEXI2HTML_LANG)

Patch Set 1 #

Total comments: 3

Patch Set 2 : Addresses JR and GP comments #

Total comments: 3

Patch Set 3 : Updated patch set with David's syntax #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -17 lines) Patch
M Documentation/GNUmakefile View 1 2 chunks +3 lines, -3 lines 0 comments Download
M make/doc-i18n-root-rules.make View 1 2 chunks +5 lines, -5 lines 0 comments Download
A scripts/build/run-and-check.sh View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M stepmake/stepmake/texinfo-rules.make View 1 2 chunks +10 lines, -9 lines 0 comments Download

Messages

Total messages: 21
PhilEHolmes
Slightly complicated (for me, anyway) but please review and ask questions if it's not clear ...
12 years, 2 months ago (2012-02-07 15:37:40 UTC) #1
Graham Percival
Looks basically good, I just have some trivial quibbles. This should vastly simplify debugging doc ...
12 years, 2 months ago (2012-02-07 19:49:46 UTC) #2
Julien Rioux
Graham basically covered it... http://codereview.appspot.com/5645046/diff/1/Documentation/GNUmakefile File Documentation/GNUmakefile (right): http://codereview.appspot.com/5645046/diff/1/Documentation/GNUmakefile#newcode198 Documentation/GNUmakefile:198: $(top-src-dir)/scripts/build/CheckAndRun.sh "$(MAKEINFO) -I$(src-dir) -I$(outdir) --output=$@ ...
12 years, 2 months ago (2012-02-07 20:22:11 UTC) #3
Julien Rioux
On 2012/02/07 19:49:46, Graham Percival wrote: > i.e. define > RUN_WITH_LOG = $(top-src-dir)/scripts/build/CheckAndRun.sh > somewhere ...
12 years, 2 months ago (2012-02-07 20:23:39 UTC) #4
PhilEHolmes
Updates pretty much as suggested. Please review and agree to push.
12 years, 2 months ago (2012-02-08 12:10:22 UTC) #5
Graham Percival
LGTM, but I think it should go through a normal countdown.
12 years, 2 months ago (2012-02-08 12:44:30 UTC) #6
Julien Rioux
I'm not sure why the run-and-check.sh script needs to be so complicated. http://codereview.appspot.com/5645046/diff/1005/scripts/build/run-and-check.sh File scripts/build/run-and-check.sh ...
12 years, 2 months ago (2012-02-08 12:56:34 UTC) #7
mail_philholmes.net
----- Original Message ----- From: <julien.rioux@gmail.com> To: <PhilEHolmes@googlemail.com>; <dak@gnu.org>; <graham@percival-music.ca> Cc: <reply@codereview-hr.appspotmail.com>; <lilypond-devel@gnu.org> Sent: Wednesday, ...
12 years, 2 months ago (2012-02-08 13:20:57 UTC) #8
mail_philholmes.net
----- Original Message ----- From: <graham@percival-music.ca> To: <PhilEHolmes@googlemail.com>; <dak@gnu.org>; <julien.rioux@gmail.com> Cc: <reply@codereview-hr.appspotmail.com>; <lilypond-devel@gnu.org> Sent: Wednesday, ...
12 years, 2 months ago (2012-02-08 13:26:02 UTC) #9
Graham Percival
On Wed, Feb 08, 2012 at 01:23:06PM -0000, Phil Holmes wrote: > The reason I ...
12 years, 2 months ago (2012-02-08 13:26:49 UTC) #10
Julien Rioux
On Wed, Feb 8, 2012 at 2:20 PM, Phil Holmes <mail@philholmes.net> wrote: > ----- Original ...
12 years, 2 months ago (2012-02-08 13:35:42 UTC) #11
Julien Rioux
On Wed, Feb 8, 2012 at 2:26 PM, Graham Percival <graham@percival-music.ca> wrote: > On Wed, ...
12 years, 2 months ago (2012-02-08 13:39:23 UTC) #12
dak
"Phil Holmes" <mail@philholmes.net> writes: > ----- Original Message ----- > From: <julien.rioux@gmail.com> > To: <PhilEHolmes@googlemail.com>; ...
12 years, 2 months ago (2012-02-08 13:40:13 UTC) #13
mail_philholmes.net
----- Original Message ----- From: "Julien Rioux" <julien.rioux@gmail.com> To: "Phil Holmes" <mail@philholmes.net> > Yes, the ...
12 years, 2 months ago (2012-02-08 14:05:31 UTC) #14
dak
"Phil Holmes" <mail@philholmes.net> writes: > ----- Original Message ----- > From: "Julien Rioux" <julien.rioux@gmail.com> > ...
12 years, 2 months ago (2012-02-08 14:28:25 UTC) #15
Julien Rioux
On Wed, Feb 8, 2012 at 3:05 PM, Phil Holmes <mail@philholmes.net> wrote: > ----- Original ...
12 years, 2 months ago (2012-02-08 14:28:42 UTC) #16
dak
Julien Rioux <julien.rioux@gmail.com> writes: > I guess I made a typo and it should be ...
12 years, 2 months ago (2012-02-08 14:31:13 UTC) #17
Julien Rioux
On Wed, Feb 8, 2012 at 3:31 PM, David Kastrup <dak@gnu.org> wrote: > Julien Rioux ...
12 years, 2 months ago (2012-02-08 14:37:30 UTC) #18
mail_philholmes.net
----- Original Message ----- From: "David Kastrup" <dak@gnu.org> To: "Julien Rioux" <julien.rioux@gmail.com> Cc: "Phil Holmes" ...
12 years, 2 months ago (2012-02-08 14:42:41 UTC) #19
Julien Rioux
And one last question: http://codereview.appspot.com/5645046/diff/1005/stepmake/stepmake/texinfo-rules.make File stepmake/stepmake/texinfo-rules.make (right): http://codereview.appspot.com/5645046/diff/1005/stepmake/stepmake/texinfo-rules.make#newcode37 stepmake/stepmake/texinfo-rules.make:37: $(buildscript-dir)/run-and-check "$(MAKEINFO) -I$(src-dir) -I$(outdir) -D ...
12 years, 2 months ago (2012-02-08 14:56:11 UTC) #20
mail_philholmes.net
12 years, 2 months ago (2012-02-08 15:47:32 UTC) #21
----- Original Message ----- 
From: <julien.rioux@gmail.com>
To: <PhilEHolmes@googlemail.com>; <dak@gnu.org>; <graham@percival-music.ca>; 
<mail@philholmes.net>
Cc: <lilypond-devel@gnu.org>; <reply@codereview-hr.appspotmail.com>
Sent: Wednesday, February 08, 2012 2:56 PM
Subject: Re: Directs makeinfo and texi2html output to logfiles (issue 
5645046)


> And one last question:
>
>
>
http://codereview.appspot.com/5645046/diff/1005/stepmake/stepmake/texinfo-rul...
> File stepmake/stepmake/texinfo-rules.make (right):
>
>
http://codereview.appspot.com/5645046/diff/1005/stepmake/stepmake/texinfo-rul...
> stepmake/stepmake/texinfo-rules.make:37:
> $(buildscript-dir)/run-and-check "$(MAKEINFO) -I$(src-dir) -I$(outdir)
> -D web_version --output=$@ $<"  "$*.makeinfo.log"
> Do the log files end up in the $(outdir) ?
>
> I guess not unless we specify "$(outdir)/$*.makeinfo.log", right?
>
> http://codereview.appspot.com/5645046/
>

Correct - they go into build/Documentation.  The benefit of that is that 
it's a less cluttered directory.  If you think it's important, I could 
easily update it to put them in outdir.  logdir??

--
Phil Holmes


Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b