lilypond-user
[Top][All Lists]
Advanced

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

Re: Git version control


From: Gregrs
Subject: Re: Git version control
Date: Wed, 23 Aug 2017 12:43:13 +0100
User-agent: Mutt/1.8.3 (2017-05-23)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Tue, Aug 15, 2017 at 07:31:20PM +0200, Francisco Vila wrote:

>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.

The commands defined in this openlilylib snippet are also very useful 
for this sort of thing:

https://github.com/openlilylib/snippets/blob/master/editorial-tools/git-commands/definitions.ily

Thanks,
Greg

- -- 
Twitter: @gregrs_uk
PGP key ID: 64907C8A
Fingerprint: EBD1 077F CCDD 841E A505 3FAA D2E8 592E 6490 7C8A
-----BEGIN PGP SIGNATURE-----

iQEcBAEBCAAGBQJZnWpRAAoJEB7WhxSLszZltcEH+gNfsffQb+oxsYHOLfWYw13T
qz8Ohq6yO1GypYm/F/5G1L6jK/Nsui/xch2BaFHRrdQSz35M7CG4ZtGNul3aQmFf
Yg0q9Aats+hmAP4KVm/ao9HCVKuhXym6LtKqocJ/unxub869KmSBKa1FE5MSnaV1
Kdu+IoN4VfzmdZCSt57ty2v4uU4mVzRzTdZV670EMh7CmH1h0JeF/X+TxuDnEfkK
jdqTAsFOL7Lcm5p+CoG4oXN62iJosSDEM8Fyjr06MO2dz91mt0sipCYDYmPGdi4z
/m4gSAr60GjXbbtdH+Y6HO5X87c499S6JmcIBScHD8drBQ1+e+PuAWuWOZC9Mh0=
=5X3k
-----END PGP SIGNATURE-----



reply via email to

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