This repository was archived by the owner on Oct 17, 2021. It is now read-only.

Description
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 the edition param insteading of updating manualy the editon on the docinfo.xml file.
The solution It would be something like:
a2x -a docinfo1 --edition=`git describe HEAD` ...
or
a2x -a docinfo1 -a edition=`git describe HEAD` ...
The problem
When building the pdf with -a docinfo it will read the file docinfo.xml where I try to keep the edition updated:
<edition>v0.5.0</edition>
<revhistory>
<revision>
<revnumber>v0.5.0</revnumber>
<date>17/Março/2014</date>
<authorinitials>Eduardo</authorinitials>
<revremark>
- Documentação de funções no apêndice #23
- Revisão do capítulo de memória dinâmica #21
- Inclusão de experimento mkfifo no apêndice #22
- Inclusão do Capítulo de Arquivos #22
</revremark>
</revision>
<revision>
<revnumber>v0.4.0</revnumber>
...
</revhistory>
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.