# HG changeset patch # User William Roberts # Date 1244650678 -3600 # Node ID 705136d2022f123786b9dcb55e5fce4bf3aa548c # Parent c34a018f3291f9b9d7d37169de6ee27fd66e95ca sbs_findstr.pl inserts the target attribute into the status, for quick grepping. The sbs_quickstatus.pl does this for all elements diff -r c34a018f3291 -r 705136d2022f williamr/sbs_findstr.pl --- a/williamr/sbs_findstr.pl Wed Jun 10 17:16:09 2009 +0100 +++ b/williamr/sbs_findstr.pl Wed Jun 10 17:17:58 2009 +0100 @@ -19,6 +19,7 @@ my $expression = shift @ARGV; my $line; my $skipping = 1; +my $current_target = ""; @ARGV = map {glob} @ARGV; @@ -35,11 +36,21 @@ if ($line =~ /$expression/io) { $skipping = 0; + $current_target = ""; + if ($line =~ /(target='[^']+') /) + { + $current_target = $1; + } } else { $skipping = 1; } } - print $line if ($skipping == 0); + next if ($skipping == 1); + if (substr($line,0,8) eq ") + { + my $prefix = substr($line,0,8); + if ($prefix eq "