forked from joh/when-changed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
31 lines (17 loc) · 781 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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+
pyinotify
~ Usage
when-changed FILE COMMAND...
when-changed FILE [FILE ...] -c COMMAND