lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: preprocessing an included file with system command


From: Karl Hammar
Subject: Re: preprocessing an included file with system command
Date: Sun, 25 Sep 2011 19:08:04 +0200 (CEST)

Mike:
0173 140 57
> On Sun, Sep 25, 2011 at 6:34 AM, Dmytro O. Redchuk
> <address@hidden> wrote:
> > On Sat 24 Sep 2011, 23:52 Michael Ellis wrote:
> >> On Sat, Sep 24, 2011 at 4:28 PM, Graham Percival
> >> > or m4 or python, I'd do this:
> >> > # mylily.sh
> >> > cp $1 /tmp
> >> > sed '...' /tmp/$1 > /tmp/$1-processed.ly
> >> > lilypond /tmp/$1-processed.ly
> >> > mv /tmp/$1-processed.ly .
> > Often it can be done with something like this (within bash script;
> > windows equivalent is also quite possible):
> >
> >  sed '...' < $1 | lilypond -o ${1%%.ly} -
...
> But I think the larger question is whether future versions of Lily
> should support some form of text macro.
...

One does not really want macros nor preprocessors, since it munges
up error reporting.

Regards,
/Karl Hammar

-----------------------------------------------------------------------
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





reply via email to

[Prev in Thread] Current Thread [Next in Thread]