6 $0 =~ m
%^(.*?
/?tools)/winapi
/make_filter
$%;
7 require "$1/winapi/setup.pm";
11 &file_absolutize &file_normalize
12 $current_dir $wine_dir
14 use output qw($output);
15 use make_filter_options qw($options);
17 use make_parser qw($directory $tool $file $line $message);
19 if($options->progress) {
20 $output->enable_progress;
22 $output->disable_progress;
25 ########################################################################
27 ########################################################################
29 my $command = $options->make . " " . join(" ", $options->arguments);
30 open(IN, "($command) 2>&1 |");
35 if(!&make_parser::line($_)) {
41 if($directory && $directory ne "." && $file !~ m%^/%) {
42 $output->write(&file_normalize("$directory/$file") . ":$line: $message\n");
44 $output->write("$file:$line: $message\n");
47 if($directory && $directory ne "." && $file !~ m%^/%) {
48 $output->write(&file_normalize("$directory/$file") . ": $message\n");
50 $output->write("$file: $message\n");
53 if($directory && $directory ne ".") {
54 $output->write("$directory: $tool: $message\n");
56 $output->write("$tool: $message\n");
58 $output->write("$message\n");
61 } elsif($tool eq "make") {
62 if($directory && $directory ne ".") {
63 $output->progress("$directory: make");
70 $output->hide_progress();