latexd.sh watches a file and calls make when it is changed. This is useful to automatically compile a LaTeX document when saved. To detect a change, a MD5 sum of the file is computed. This script works well (at least) on GNU/Linux and FreeBSD. Limitations : - Handles only a single file. - The delay between two checks is not configurable.