Hi David,

It has been a while since I visited the site, but more information on
using git with scores is available at:
http://lilypondblog.org/2014/04/printing-git-versioning-info-in-a-score
/ 
Urs Liska and Lars Haulin provide some excellent tools and commentary
with a link to the current definitions.ily file at:
http://lilypondblog.org/wp-content/uploads/2014/04/definitions.ily in
the snippets repository available at:
https://github.com/openlilylib/snippets .  To find the definitions
file, click through snippets-> editorial-tools -> git-commands.
Enjoy,
Ben 





On Sun, 2018-01-14 at 17:26 +0100, David Kastrup wrote:
> Ben Beeson <bwbe...@gmail.com> writes:
> 
> > Hi David,
> > Here is how I get the \gitCommitish in the tagline. First, include
> > the
> > "gitDefinitions.ily" file.
> 
> What is that?
> 
> > I use something like this:
> > 
> > \include "/home/workspace/include/gitDefinitions.ily" 
> > 
> > Then in the header declaration, add the \gitCommitish and any other
> > items desired  to the tagline entry: 
> > 
> > \header { 
> >           title = "Title"   
> >           composer = ""
> >           arranger = ""
> >           meter = ""
> >           tagline = \markup { \filename  " " \source " "  git
> > Version:
> > \gitCommitish  Committed: \gitDateTime
> >           Engraved:
> >           \simple #(strftime "%d - %b - %Y - %H%M  " (localtime
> > (current-time)))
> >                }    
> > }
> > 
> > An example tagline from a score I am editing presently looks like
> > this:
> > 
> > 
> > Here \source is just a note to remind me where I got the
> > information i
> > used. This could be person's name or whatever. For the tagline
> > above,
> > \source is "null", so that value is missing from the tagline.   I
> > hope
> > that  the above is helpful to others. 
> > 
> > Regarding your comment about adding an expression to
> > \bookOutputSuffix
> > -- that is what I am trying to do.  That said, 
> > 
> > \bookOutputSuffix "\gitCommitish" or \bookOutputSuffix =
> > \gitCommitish  does not work as expected.
> 
> What about
> 
> \bookOutputSuffix \gitCommitish
> 
> then?
> 
> > The Guile information I have seen so far online has not been too
> > helpful for this particular question.
> 
> string-append and similar functions exist.
> 
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to