lilypond-user
[Top][All Lists]
Advanced

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

Re: How to append a git version to an output filename


From: David Kastrup
Subject: Re: How to append a git version to an output filename
Date: Sun, 14 Jan 2018 11:37:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

Ben Beeson <address@hidden> writes:

> Hello all,
>
> I am using git to keep track of edits to scores and am presently using 
>
>
>       \bookOutputName "score-filename" 
>  
> to write the output filename for the pdf that is generated in the
> LilyPond "ly" file.  I am also using  
>
>       "git Version: \gitCommitish " 
>
> in the tagline so the generated pdf has the git version information
> included in the score that is generated.

How would that work?

> I am wondering if there is a way to include \gitCommitish in
> \bookOutputSuffix so that the output filename looks like:
>
>       "score-filename-gitversion.pdf".
>
> So far I have not been able to figure out how to do that or find an
> existing solution in the snippets, forum or elsewhere.   If anyone has
> a solution, please share it.

It's easy to use any Guile string expression as argument to
\bookOutputSuffix but I have no idea how you manage to get the Commitish
into the tagline.

-- 
David Kastrup



reply via email to

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