ransford/pdflatex-makefile

Example seems to be broken – looks for 'revision.tex' also if no VCS is present

Closed this issue · 6 comments

adoa commented

The example in the sub-folder does not built upon invoking 'make' – given that there is no version control system taking care of the folder.

Just extract the tarball into an empty folder and try to 'make' it. It complains about a 'revision.tex' not being present but the 'draftfooter.sty' tries to include it. However, the makefile itself would create it – if there was a version control system managing the files.

My Tex/Make knowledge is not advanced enough to find the most flexible solution to this kind of problem.

The example subfolder is part of the pdflatex-makefile repository, so if you're working with a git clone of the repo, you have the right machinery in place. Which tarball are you referring to?

adoa commented

Well … you can also just download a tarball of the repository with the 'Download ZIP' button on the right column in the repository overview. Then you do not 'need' to know git to try test this project.

Note that there's an \IfFileExists command that lets you execute stuff (e.g., \include{revision}) conditionally. Maybe drafthead.sty should omit revision information if the example directory doesn't live under version control. I'll try that.

adoa commented

Hmm … this explains another confusing point: the .sty-file you are referring to is called draftfooter.sty in your repo, while the example.tex is calling it 'drafthead'.

Thanks. I corrected the mentions of drafthead while I was in there adding conditional inclusion of revision.tex.

adoa commented

Thank you very much! I guess I will now try to mess around with this make magic – and maybe recommend it to other people. Because it seems to be doing pretty much exactly what I want.