lilypond-user
[Top][All Lists]
Advanced

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

Re: Git version control


From: Francisco Vila
Subject: Re: Git version control
Date: Tue, 15 Aug 2017 19:31:20 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

On 10/08/17 23:11, Graham King wrote:
\header {
  tagline = \markup{  \center-column{
        \concat {"Music engraving by Lilypond "
            $(lilypond-version) "-www.lilypond.org"
        }
        \line { "Version control for this edition: gitrev " \gitrev " " \modts }
        }}
}

Now you can tell whether that paper copy is up-to-date.  Of course, you don't want this code cluttering up every lilypond score, so best put it in a separate file and \include it.


Nice. I have a simpler solution for those who launch a bash script for rendering en masse. The script has this line:

    echo "hash="\"Git version `git log --pretty="%h %s" | head -1`"\"" > gitversion-header.ily

Then the same script calls lilypond on the files to compile as usual.

The lilypond file or your stylesheet \includes the file gitversion-header.ily and prints the version with a \markup{\hash} or similar.

--
Francisco Vila. Badajoz (Spain)
paconet.org , csmbadajoz.com

reply via email to

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