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
~ Installation
pip install https://github.com/joh/when-changed/archive/master.zip
~ Usage
when-changed FILE COMMAND… when-changed FILE [FILE …] -c COMMAND
Metadata
Release files for when-changed 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| when-changed-0.2.0.tar.gz | 2.3 kB | Details |
Release files / when-changed-0.2.0.tar.gz
| Download URL | when-changed-0.2.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2757cbb8ef186df1c1881048d54fb8b6582e301e6fe2693646e0295303fd1656
|
|
BLAKE2b-256 checksum How to use checksums |
6e3b4e65975b5be4518b134bedb2bde138aee587d746c0971724fe1a8c71d454
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |