[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patch: small reduction in output from make doc
From: |
Graham Percival |
Subject: |
Re: Patch: small reduction in output from make doc |
Date: |
Wed, 15 Jun 2011 15:35:32 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Wed, Jun 15, 2011 at 03:22:14PM +0100, Phil Holmes wrote:
> ----- Original Message ----- From: "Graham Percival"
> <address@hidden>
> To: "Phil Holmes" <address@hidden>
> Cc: <address@hidden>
> Sent: Wednesday, June 15, 2011 2:42 PM
> Subject: Re: Patch: small reduction in output from make doc
>
> >Are you sure that it creates *new* log files, instead of
> >overwriting the existing .log file? I mean, don't we have a rule
> >for .ly -> .log now?
>
> It creates new logfiles, since there is no existing logfile. It
> uses the name of the .ly file to generate the logfile name. So -
> there is a file called key-initial.ly. Part of the build process
> calls lily to process that, and since it has a \midi{} block, a file
> called key-initial.midi is produced.
Hmm. Does it only create key-initial.midi, or does it also create
key-initial.pdf ? (or .eps, or .png, etc)
My concern is that at some point, we might call lilypond again on
key-initial.ly, and then we might redirect that output to .log as
well, and then overwrite the log file since > doesn't check if the
file already exists. IMO, it takes a lot to truly be "too
paranoid" when dealing with build systems.
Could you change it to .midi.log to make an old man feel safe? ;)
(any age that cannot be represented in 4 bits is "old")
> >$*.log 2>&1
>
> to the end of the call. > redirects output. $*.log expands to
> filename.log (in this case key-initial.log - this expansion is a
> make feature).
Neat, I didn't know about $*
Cheers,
- Graham
- Patch: small reduction in output from make doc, Phil Holmes, 2011/06/15
- Re: Patch: small reduction in output from make doc, Graham Percival, 2011/06/15
- Re: Patch: small reduction in output from make doc, Reinhold Kainhofer, 2011/06/15
- Re: Patch: small reduction in output from make doc, Phil Holmes, 2011/06/15
- Re: Patch: small reduction in output from make doc, Reinhold Kainhofer, 2011/06/15
- Re: Patch: small reduction in output from make doc, Graham Percival, 2011/06/16
- Re: Patch: small reduction in output from make doc, Phil Holmes, 2011/06/15
- Re: Patch: small reduction in output from make doc, Reinhold Kainhofer, 2011/06/16
- Re: Patch: small reduction in output from make doc, Carl Sorensen, 2011/06/16
- Re: Patch: small reduction in output from make doc, David Kastrup, 2011/06/16