[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Identify included files
From: |
David Wright |
Subject: |
Re: Identify included files |
Date: |
Tue, 26 May 2020 17:13:27 -0500 |
User-agent: |
Mutt/1.10.1 (2018-07-13) |
On Tue 26 May 2020 at 13:06:50 (-0400), Fr. Samuel Springuel wrote:
> > On 26 May, 2020, at 12:09 PM, Timothy Lanfear <address@hidden> wrote:
> >
> > Maybe this code can give some hints on how to decide if midi is being
> > produced.
>
> That’s the first code I’ve seen that’s been able to definitively show when a
> midi file is being produced. Thank you.
>
> Now, there is the issue of it being inside the book block, which makes it
> harder to incorporate into something like parse-only.ly (which generally
> operates either before or after all input is read), but at least it gives me
> a starting point for something to play with.
Because of the inability to collate multiple MIDI files, I've always
renamed them. I tee the log into a nonce file, which I grep for their
names in a postprocessing script. (I then trash the log unless there
was an error code, in which case I leave it, renaming it foo.error.)
End of main script:
"$Youngestlily" "$Pointclick" --include="$HOME"/LilyLib/… …
"$Sourcefilename" 2>&1 | tee "$Unique";
[ $PIPESTATUS -ne 0 ] && Lilyerror="ERROR";
midirename "$Unique";
if [ -z "$Lilyerror" ]; then
rm -f "${Sourcefilename/%.ly/.error}";
else
printf '\n%s\n\n' "$Lilyerror";
mv "$Unique" "${Sourcefilename/%.ly/.error}";
return 2;
fi )
}
Fragment of midirename script:
grep -e '^MIDI output to `' "$1" | sed -e 's/^[^`]*.//;s/.\.\.\.$//' >>
"$Unique"
PDFs show up in the same way, but not PNGs (which aren't in my own workflow).
Cheers,
David.
- Re: Identify included files, (continued)
- Re: Identify included files, David Wright, 2020/05/25
- Re: Identify included files, Fr. Samuel Springuel, 2020/05/25
- Re: Identify included files, Wols Lists, 2020/05/25
- Re: Identify included files, Fr. Samuel Springuel, 2020/05/25
- Re: Identify included files, Matt Wallis, 2020/05/26
- Re: Identify included files, Fr. Samuel Springuel, 2020/05/26
- Re: Identify included files, Timothy Lanfear, 2020/05/26
- Re: Identify included files, Fr. Samuel Springuel, 2020/05/26
- Re: Identify included files,
David Wright <=
- Re: Identify included files, Fr. Samuel Springuel, 2020/05/27
- Re: Identify included files, David Wright, 2020/05/21
- Re: Identify included files, antlists, 2020/05/21
- Re: Identify included files, David Wright, 2020/05/21
- Re: Identify included files, Wols Lists, 2020/05/22
- Re: Identify included files, Michael Gerdau, 2020/05/23
- Re: Identify included files, antlists, 2020/05/23
- Re: Identify included files, David Wright, 2020/05/23
- Re: Identify included files, Fr. Samuel Springuel, 2020/05/22
- Re: Identify included files, antlists, 2020/05/18