<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>Hey Popplers,</div><div><br></div><div>Wondering if anyone else would find it useful….</div><div><br></div><div>When I generate some content with pdftohtml, I'd like it to also spit out the build version with the content so I can keep track of which version of the software produced which content. I'm guessing that this might be useful in other utilities also.</div><div><br></div><div>In any case, I wanted to share my plan before I undertake:</div><div><br></div><div>1. Modify poppler cmake system;</div><div>
<ul>
        <li>add a new configure flag, INCLUDE_VERSION_IN_OUTPUT</li>
        <li>when set, run "git describe" on the repo when running a make</li>
</ul>
<p>2. Use perl to insert the output of "git describe" into new header file that's not checked into GIT.<br>
3. Make sure that .gitignore is set for the new header file; call the new header file VERSION.h<br>
4. Conditionally include VERSION.h into the pdftohtml.cc build; could later be added to other utils<br>
5. Modify pdftohtml.cc to spit out the version number
into the output directory as a new file, "poppler-version.txt", when INCLUDE_VERSION_IN_OUTPUT is configured in the poppler build.</p>
<p>Please let me know if you have any feedback.</p><p>Thanks, --josh</p></div></body></html>