I use latexmk to compile a project. It should run some bash commands before starting to compile.
I tried to add
$compiling_cmd="date >> /tmp/compiled.log";
to the local
.latexmkrc file. But it is only evaluated, if I run latexmk with
latexmk -pvc but not with
There is a similar question about a post compile hook.