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: Flaming Hakama by Elaine
Subject: Re:How to append a git version to an output filename
Date: Sun, 14 Jan 2018 12:17:32 -0800

---------- Forwarded message ----------
From: Ben Beeson <address@hidden>
To: David Kastrup <address@hidden>, lilypond-user <address@hidden>
Subject: Re: How to append a git version to an output filename
Hi David,

...

What I seek is a way to append whatever the current git version is to the pdf filename that is generated so I don't have to open the pdf and check the tagline to see what version it is when searching for a specific version. Appending the git version to the filename would make it easier to know which version is represented by the pdf when searching through the directory.



I'm unclear on what you want the git version of.  I can only assume it is one of the lilypond source files.

In any case, if it something to do with the git commit version of a file, you can get that from the command line, such as using something like:

 git log $file | head -1 | sed 's/commit //'




And then there is a way to execute a shell command from within lilypond, and assign it to a variable.  Which I'm not familiar with, but I've read on this list about people doing so.  I'd bet you could find that in the mail archives.



The Guile information I have seen so far online has not been too helpful for this particular question. If anyone has any ideas, I would enjoy seeing those.

Cheers,

Ben



HTH, 

David Elaine Alt
415 . 341 .4954                                           "Confusion is highly underrated"
address@hidden
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 


reply via email to

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