Permalink
Browse files

Documentation updates.

  • Loading branch information...
1 parent cf7786d commit e891d700951f08435be21bac1ed40891ab8036cc @gabrielg committed May 13, 2012
Showing with 20 additions and 3 deletions.
  1. +1 −1 brew/kqfm.rb
  2. +1 −1 kqfm.c
  3. +14 −1 man/kqfm.1
  4. +4 −0 man/kqfm.md
View
@@ -4,7 +4,7 @@
class Kqfm < Formula
homepage 'https://github.com/gabrielg/kqfm'
- url 'https://github.com/gabrielg/kqfm/tarball/v1.0.0'
+ url 'https://github.com/gabrielg/kqfm/tarball/v1.0.1'
md5 '43d8dd9594f08962b4b69689ad3e5f65'
def install
View
2 kqfm.c
@@ -14,7 +14,7 @@
#include <signal.h>
#include <ctype.h>
-#define VERSION "1.0.0"
+#define VERSION "1.0.1"
/* FreeBSD doesn't support O_EVTONLY. */
#ifdef O_EVTONLY
View
@@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
-.TH "KQFM" "1" "April 2012" "" ""
+.TH "KQFM" "1" "May 2012" "" ""
.
.SH "NAME"
\fBkqfm\fR \- monitor a file or a set of files for changes
@@ -140,6 +140,19 @@ $ find \. \-name \'*\.css\' | kqfm \-e write
.
.IP "" 0
.
+.P
+Watch a single file and run a command when it changes in any way:
+.
+.IP "" 4
+.
+.nf
+
+$ echo "file\.c" | kqfm | while read changes; do make; done
+.
+.fi
+.
+.IP "" 0
+.
.SH "AUTHOR"
Gabriel Gironda \fIgabriel@gironda\.org\fR
.
View
@@ -69,6 +69,10 @@ Watch all CSS files in a directory for writes:
$ find . -name '*.css' | kqfm -e write
+Watch a single file and run a command when it changes in any way:
+
+ $ echo "file.c" | kqfm | while read changes; do make; done
+
## AUTHOR
Gabriel Gironda <gabriel@gironda.org>

0 comments on commit e891d70

Please sign in to comment.