4 unshift @INC, ($::ENV{'BUILD_DIR'} || '/usr/lib/build');
11 my ($dist, $archs, $configdir);
14 if ($ARGV[0] eq '--dist') {
19 if ($ARGV[0] eq '--archpath') {
24 if ($ARGV[0] eq '--configdir') {
26 $configdir = shift @ARGV;
32 die("Usage: getchangetarget --dist <dist> --archpath <archpath> [--configdir <configdir>]\n") if @ARGV;
34 my $cf = Build::read_config_dist($dist, $archs, $configdir);
35 print "$cf->{'target'}\n" if $cf->{'target'};