16 |
|
|
17 |
opendir my $dirh, $dir or die "$0: $dir: $!"; |
opendir my $dirh, $dir or die "$0: $dir: $!"; |
18 |
for (grep {$_ ne 'alltests.xml'} grep /$file_pattern/, readdir $dirh) { |
for (grep {$_ ne 'alltests.xml'} grep /$file_pattern/, readdir $dirh) { |
19 |
|
my $out_file = $out_dir.'/'.$_.'.pl'; |
20 |
my @cmd = ('perl', map ({"-I$_"} @INC), |
my @cmd = ('perl', map ({"-I$_"} @INC), |
21 |
'domtest2perl.pl', $dir.'/'.$_, |
'domtest2perl.pl', $dir.'/'.$_, |
22 |
'--output-file' => $out_dir.'/'.$_.'.pl'); |
'--output-file' => $out_file); |
23 |
print STDERR join " ", @cmd, "\n"; |
print STDERR join " ", @cmd, "\n"; |
24 |
system @cmd and die "$0: domtest2perl.pl: $@"; |
system @cmd and die "$0: domtest2perl.pl: $@"; |
25 |
|
system 'perl', map ({"-I$_"} @INC), '-c', $out_file |
26 |
|
and die "$0: $out_file: $@"; |
27 |
} |
} |