forked from joh/when-changed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,35 @@ | ||
when-changed | ||
|
||
Run a command when a file is changed | ||
|
||
|
||
~ What is it? | ||
|
||
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! | ||
|
||
|
||
~ What do I need? | ||
|
||
Python 2.6+ | ||
|
||
|
||
|
||
|
||
~ Installation | ||
|
||
pip install https://github.com/joh/when-changed/archive/master.zip | ||
|
||
|
||
~ Usage | ||
|
||
when-changed FILE COMMAND... | ||
when-changed FILE [FILE ...] -c COMMAND |