Skip to content

Instantly share code, notes, and snippets.

@Congee
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Congee/7228397ce2eb3ce5fca0 to your computer and use it in GitHub Desktop.
Save Congee/7228397ce2eb3ce5fca0 to your computer and use it in GitHub Desktop.
latexmk on Mac OS X
class Latexmk < Formula
desc "La­texmk com­pletely au­to­mates the pro­cess of gen­er­at­ing a LaTeX doc­u­ment."
homepage "http://users.phys.psu.edu/~collins/software/latexmk-jcc/"
url "http://users.phys.psu.edu/%7Ecollins/software/latexmk-jcc/latexmk-443a.zip"
sha256 "e410d295c0a47327b953ece5b582c294359bdf89138ef990d5621b020ff2bbe5"
depends_on :tex
depends_on "ghostscript" => :optional
def install
bin.install "latexmk.pl" => "latexmk"
man1.install "latexmk.1"
end
test do
(testpath/"test.tex").write <<-'EOS'.undent
\documentclass{article}
\begin{document}
Hello World!
\end{document}
EOS
system bin/"latex-mk", "test.tex"
assert File.exist?("test.dvi")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment