I'm not sure if this is possible, but my goal is to include some information about the current point of my LaTex file in its git source history in the PDF output of my file.
What I want to be able to access is the information the results from the following shell command git describe --tags
So I'd like to write a macro which triggers when pdftex
is run. The macro would then run git describe --tags
and then the value of that command would be placed in the designated places within the output document (namely the page headers).
I'm really not sure if it's possible to write a LaTeX macro that can run shell commands, but I'd be grateful if anyone has any suggestions.
gitinfo2
.