#!/usr/bin/env ruby =begin TESTR-HERALD 1 "2012-01-16" "14.2.0" ==================================== NAME ---- testr-herald - reports modified files SYNOPSIS -------- `testr-herald` [*OPTION*]... DESCRIPTION ----------- This program monitors the current working directory and prints relative paths of modified files, one per line, to the standard output stream. OPTIONS ------- `-h`, `--help` Display this help manual using man(1). SEE ALSO -------- testr(1), testr-driver(1), testr-master(1), testr-herald(1) =end ========================================================================= $0 = File.basename(__FILE__) require 'binman' BinMan.help require 'guard' require 'guard/listener' listener = Guard::Listener.select_and_init(:watch_all_modifications => true) listener.on_change {|files| puts files } STDOUT.sync = true # don't buffer puts() listener.start