[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to append a git version to an output filename
From: |
Ben Beeson |
Subject: |
Re: How to append a git version to an output filename |
Date: |
Sun, 14 Jan 2018 18:04:53 -0500 |
Good evening all,
I have attached an example that I hope helps.
Thomas, the gitCommitish I am using is the same as the one linked at:
So after committing the LilyPond files to the repository, the current git version will appear in the tagline when you rebuild the pdf since that value is extracted in the tagline entry. What I seek is a way to get that value appended automatically to the generated pdf so that the generated pdf would have a filename such as:
CommitishExample-0490435.pdf.
Using \bookOutputSuffix seemed like a good place to start, but as Thomas has pointed out, \bookOutputSuffix "\gitCommitish" or \bookOutputSuffix \gitCommitish does not work.
Elaine has a good idea to extract that information at the shell and then append it to the filename using shell functions. I had not thought of that method before. I will work on a shell script for that and see what come out of that.
David,
My apologies for referring you to the place where the git definitions I used were. I thought that was information you were looking for.
Thanks to all for your help,
Ben
On Sun, 2018-01-14 at 12:17 -0800, Flaming Hakama by Elaine wrote:
CommitishExample.ly
Description: Text Data
CommitishExample.pdf
Description: Adobe PDF document
- Re: How to append a git version to an output filename, (continued)
Re: How to append a git version to an output filename, Urs Liska, 2018/01/14
Re: How to append a git version to an output filename, Andrew Bernard, 2018/01/14
Re:How to append a git version to an output filename, Flaming Hakama by Elaine, 2018/01/14
- Re: How to append a git version to an output filename,
Ben Beeson <=
Re: How to append a git version to an output filename, Flaming Hakama by Elaine, 2018/01/15