Skip to content

Alternative for git hooks #27

@twoframesperminute

Description

@twoframesperminute

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions