# HG changeset patch # User Heiko Schlittermann # Date 1260286867 -3600 # Node ID 3e11dab11c4b233c12332bf61047e241b2a21025 # Parent 5758f12ce2d784987cdaa113a1bb49fe17a7d4d9 added modules list, improved syslog parsing diff -r 5758f12ce2d7 -r 3e11dab11c4b modules --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules Tue Dec 08 16:41:07 2009 +0100 @@ -0,0 +1,1 @@ +libtimedate-perl diff -r 5758f12ce2d7 -r 3e11dab11c4b postgrep --- a/postgrep Wed Dec 02 07:48:00 2009 +0100 +++ b/postgrep Tue Dec 08 16:41:07 2009 +0100 @@ -3,7 +3,7 @@ use warnings; use Date::Parse; use Memoize; -use Smart::Comments; +use if $ENV{DEBUG} => "Smart::Comments"; die "Usage: $0 pattern [file]…\n" if !@ARGV; @@ -19,12 +19,12 @@ if ( !/^(?.{15}) \s(?\S+) - \s(?\S+): + \s(?postfix\/\S+): \s(?[[:xdigit:]]+): \s(?.*)/x ) { - print "$_\n" if /$pattern/i; + print "$_\n" if / postfix\// && /$pattern/i; next; }