5 use setup
qw($current_dir $wine_dir $winapi_dir $winapi_check_dir);
7 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
12 &file_absolutize &file_normalize
13 &file_type &files_filter
14 &file_skip &files_skip
18 $current_dir $wine_dir $winapi_dir $winapi_check_dir
21 use vars qw($current_dir $wine_dir $winapi_dir $winapi_check_dir);
23 my $output = "output";
28 $_ = file_absolutize($_);
30 m%^(?:libtest|rc|server|tests|tools)/% && return "";
31 m%^(?:programs|debugger|miscemu)/% && return "wineapp";
32 m%^(?:library|tsx11|unicode)/% && return "library";
33 m%^windows/x11drv/wineclipsrv.c% && return "application";
42 foreach my $file (@_) {
43 if(file_type($file) eq $type) {
54 $_ = file_absolutize($_);
56 m%^(?:libtest|programs|rc|server|tests|tools)/% && return 1;
57 m%^(?:debugger|miscemu|tsx11|server|unicode)/% && return 1;
58 m%^dlls/wineps/data/% && return 1;
59 m%^windows/x11drv/wineclipsrv.c% && return 1;
60 m%^dlls/winmm/wineoss/midipatch.c% && return 1;
67 foreach my $file (@_) {
68 if(!file_skip($file)) {
79 $_ = file_normalize($_);
80 if(!s%^$wine_dir/%%) {
81 $_ = "$current_dir/$_";
91 foreach my $dir (split(m%/%, $current_dir)) {
92 s%^(\.\./)*\.\./$dir/%%;
102 $output->progress("$wine_dir: searching for *.spec");
104 my @spec_files = map {
107 if(file_type($_) eq "winelib") {
112 } split(/\n/, `find $wine_dir -name \\*.spec`);