跨平台更换时制造
when-changed的Python项目详细描述
when-changed更改文件时运行命令
~怎么了?
Tired of switching to the shell to test the changes you just made to your code? Starting to feel like a mindless drone, manually running pdflatex for the 30th time to see how your resume now looks?
Worry not, when-changed is here to help! Whenever it sees that you have changed the file, when-changed runs any command you specify.
So to generate your latex resume automatically, you can do this:
$ when-changed CV.tex pdflatex CV.tex
Sweetness!
~我需要什么?
Python 2.6+ watchdog~安装
pip install https://github.com/joh/when-changed/archive/master.zip~用法
when-changed FILE COMMAND… when-changed FILE [FILE …] -c COMMAND