On 10/08/17 23:11, Graham King wrote:
> \header {
>
>       tagline = \markup{  \center-column{
>             \concat {"Music engraving by Lilypond "
>                 $(lilypond-version) "-www.lilypond.org
>     <http://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

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to