Move the latexmk timing command into a configurable latexmkCommandPrefix.

By default, no timing information will be taken.
On Linux with GNU user land, this value should be configured to `["/usr/bin/time", "-v"]`.
On Mac, gnu-time should be installed and configured to `["/usr/local/bin/gtime", "-v"]`.
This commit is contained in:
Shane Kilkelly 2016-06-17 14:38:08 +01:00
parent a6f6392e40
commit 638ac52e40
2 changed files with 6 additions and 1 deletions

View file

@ -49,7 +49,9 @@ module.exports = LatexRunner =
timings["sys-time"] = stderr?.match(/System time.*: (\d+.\d+)/m)?[1] or 0
callback error, output, stats, timings
_latexmkBaseCommand: ["/usr/bin/time", "-v", "latexmk", "-cd", "-f", "-jobname=output", "-auxdir=$COMPILE_DIR", "-outdir=$COMPILE_DIR"]
_latexmkBaseCommand: (Settings?.clsi?.latexmkCommandPrefix || []).concat(
["latexmk", "-cd", "-f", "-jobname=output", "-auxdir=$COMPILE_DIR", "-outdir=$COMPILE_DIR"]
)
_pdflatexCommand: (mainFile) ->
LatexRunner._latexmkBaseCommand.concat [

View file

@ -28,6 +28,9 @@ module.exports =
# modem:
# socketPath: false
# user: "tex"
# latexmkCommandPrefix: []
# # latexmkCommandPrefix: ["/usr/bin/time", "-v"] # on Linux
# # latexmkCommandPrefix: ["/usr/local/bin/gtime", "-v"] # on Mac OSX, installed with `brew install gnu-time`
internal:
clsi: