Created
April 27, 2011 03:01
-
-
Save larrytheliquid/943644 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tex = ARGV[0] | |
modified_at = File.mtime tex | |
puts "Starting from: #{modified_at}" | |
loop do | |
if modified_at != (mtime = File.mtime tex) | |
modified_at = mtime | |
`pdflatex #{tex}` | |
puts "Recompiled for: #{modified_at}" | |
end | |
sleep 1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment