| use vars qw($VERSION @ISA @EXPORT @EXPORT_OK); |
| @EXPORT_OK = qw($current_dir $wine_dir $winapi_dir $winapi_check_dir); |
| use vars qw($current_dir $wine_dir $winapi_dir $winapi_check_dir); |
| if($0 =~ m%^((.*?)/?tools/([^/]+))/([^/]+)$%) |
| if(defined($2) && $2 ne "") |
| my $pwd; chomp($pwd = `pwd`); |
| foreach my $n (1..((length($wine_dir) + 1) / 3)) { |
| $current_dir = "$1/$current_dir"; |
| $current_dir =~ s%/\.$%%; |
| $winapi_dir =~ s/$dir/winapi/g; |
| $winapi_check_dir =~ s%^\./%%; |
| $winapi_check_dir =~ s/$dir/winapi_check/g; |
| print STDERR "$tool: You must run this tool in the main Wine directory or a sub directory\n"; |
| push @INC, ($winapi_dir, $winapi_check_dir); |