-
-
Notifications
You must be signed in to change notification settings - Fork 128
Extract edition from a command instead of docinfo #17
Comments
On 18 April 2014 23:15, Eduardo de Santana Medeiros Alexandre <
You could use a2x -a docinfo1 -a edition you could write a macro that runs git describe and replaces itself with the Cheers
|
Sorry, I have made a pull request before, but I don't know how to make two pull requests with differents commits. You can see the solution of this issue here: edusantana@60e4fc3 This commit was mixed with de previous pull request: asciidoc-py/asciidoc-py#15 |
Oh dear, thats messed up #15. The thing you have done wrong is to not create a new git branch for each separate pull request. This also makes it easy to test your changes without mixing them with anything else the tester has changed. Whilst you might be able to clean it all up within git and recover the pull requests, I'd just make a new clone and create new pull requests, this time in branches :) As for this actual proposal, the docinfo file is included using include, not include1, so you should be able to use the edition attribute in the docinfo file and have it substituted there. No change to asciidoc needed. |
Ok, new branch. I will do it. But about the include, I don't know how I could do this without change asciidoc. For example, with this change I was able to:
How to do it without change asciidoc? |
I have made the pull request: #19 |
As you can see at Generating-a-Build-Number it is possible to generate a build number runnuning
git describe HEAD
on a git project.I would like to be able to use the output from
git describe HEAD
as theedition
param insteading of updating manualy the editon on thedocinfo.xml
file.The solution It would be something like:
The problem
When building the pdf with
-a docinfo
it will read the filedocinfo.xml
where I try to keep theedition
updated:But after I do a small change in the project, it still builds with
<edition>v0.5.0</edition>
since a I don't have changed it.The text was updated successfully, but these errors were encountered: