Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative for git hooks #27

Open
twoframesperminute opened this issue Jul 7, 2017 · 1 comment
Open

Alternative for git hooks #27

twoframesperminute opened this issue Jul 7, 2017 · 1 comment

Comments

@twoframesperminute
Copy link

Although git hooks are nice, they're not perfect. For instance, there is no git hook for git tag.

I now have a custom build script that runs the \gitsetinfo command before running latexmk. The command is quick enough not to slow down typesetting. In this way, the info is always up to date.

In an earlier attempt, I executed the script from the document itself by using \immediate\write18{scriptname}. However, since this only runs during typesetting, latexmk does not detect any changes and doesn't force a re-run.

Is there a way to run the script when running latexmk?

@josephwright
Copy link

This repository is no longer active: please re-report issues at https://github.com/josephwright/gitinfo2/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants