diff options
| author | fukachan <fukachan> | 2006-03-20 06:01:11 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2006-03-20 06:01:11 +0000 |
| commit | 8b803843e069115776f6fa53b6a0fefc0cf88a30 (patch) | |
| tree | a480c6981d2cdfc5421d85213a42731a9ab627db /regress | |
| parent | 3d92398e3b2b2a04a209ae7fce542f4a0551cf45 (diff) | |
| download | fml8-8b803843e069115776f6fa53b6a0fefc0cf88a30.tar.gz fml8-8b803843e069115776f6fa53b6a0fefc0cf88a30.tar.bz2 fml8-8b803843e069115776f6fa53b6a0fefc0cf88a30.zip | |
print ok or not for each rule
Diffstat (limited to 'regress')
| -rwxr-xr-x | regress/fml4to8/print_ok.pl | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/regress/fml4to8/print_ok.pl b/regress/fml4to8/print_ok.pl new file mode 100755 index 00000000..fbac5094 --- /dev/null +++ b/regress/fml4to8/print_ok.pl @@ -0,0 +1,30 @@ +#!/usr/bin/env perl +# +# $FML$ +# + +use strict; +use Carp; + +my $is_ok = 0; +my $format = "%-3s %s\n"; + +LINE: + while (<>) { + if (/^\.ok/) { + $is_ok = 1; + next LINE; + } + + if (/^\.if\s+(\S+)/) { + if ($is_ok) { + printf $format, "OK", $1; + } + else { + printf $format, "", $1; + } + $is_ok = 0; + } + } + +exit 0; |
