Lines Matching refs:directories
79 my %directories = ();
151 __cwd($directories{RESULTS});
873 $directories{SRCTOP} = abs_path($ENV{SRCTOP} || $ENV{TOP});
874 $directories{BLDTOP} = abs_path($ENV{BLDTOP} || $ENV{TOP});
875 $directories{BLDAPPS} = $ENV{BIN_D} || __bldtop_dir("apps");
876 $directories{SRCAPPS} = __srctop_dir("apps");
877 $directories{BLDFUZZ} = __bldtop_dir("fuzz");
878 $directories{SRCFUZZ} = __srctop_dir("fuzz");
879 $directories{BLDTEST} = $ENV{TEST_D} || __bldtop_dir("test");
880 $directories{SRCTEST} = __srctop_dir("test");
881 $directories{SRCDATA} = __srctop_dir("test", "recipes",
883 $directories{RESULTS} = $ENV{RESULT_D} || $directories{BLDTEST};
907 return abs2rel(catfile($directories{SRCTOP},@_,$f),getcwd);
913 return abs2rel(catdir($directories{SRCTOP},@_), getcwd);
920 return abs2rel(catfile($directories{BLDTOP},@_,$f), getcwd);
926 return abs2rel(catdir($directories{BLDTOP},@_), getcwd);
956 my $out = catfile($directories{BLDTEST},@_,$f . $e);
957 $out = catfile($directories{SRCTEST},@_,$f) unless -f $out;
966 my $out = catfile($directories{BLDAPPS},@_,$f . $e);
967 $out = catfile($directories{SRCAPPS},@_,$f) unless -f $out;
976 my $out = catfile($directories{BLDFUZZ},@_,$f . $e);
977 $out = catfile($directories{SRCFUZZ},@_,$f) unless -f $out;
985 return catfile($directories{SRCDATA},@_,$f);
991 return catdir($directories{SRCDATA},@_);
998 return catfile($directories{RESULTS},@_,$f);
1046 my @dirtags = sort keys %directories;
1048 if (!file_name_is_absolute($directories{$_})) {
1049 my $newpath = abs2rel(rel2abs($directories{$_}), rel2abs($dir));
1075 $directories{$_} = $tmp_directories{$_};
1083 print STDERR " \$directories{BLDTEST} = \"$directories{BLDTEST}\"\n";
1084 print STDERR " \$directories{SRCTEST} = \"$directories{SRCTEST}\"\n";
1085 print STDERR " \$directories{SRCDATA} = \"$directories{SRCDATA}\"\n";
1086 print STDERR " \$directories{RESULTS} = \"$directories{RESULTS}\"\n";
1087 print STDERR " \$directories{BLDAPPS} = \"$directories{BLDAPPS}\"\n";
1088 print STDERR " \$directories{SRCAPPS} = \"$directories{SRCAPPS}\"\n";
1089 print STDERR " \$directories{SRCTOP} = \"$directories{SRCTOP}\"\n";
1090 print STDERR " \$directories{BLDTOP} = \"$directories{BLDTOP}\"\n";