tinderbox: Don't alter SunOS path if we're building off a repository tree

SunOS make will work only out of snapshots and releases.
This commit is contained in:
Thomas Guyot-Sionnest 2008-11-27 06:27:47 -05:00
parent 399f0770b2
commit d40abb2504

View file

@ -234,8 +234,10 @@ sub SetupPath {
$Path = $ENV{PATH};
print "Path before: $Path\n";
if ( $OS eq 'SunOS' ) {
$ENV{'PATH'} = '/usr/ccs/bin:' . $ENV{'PATH'};
# Don't alter path if we're building off a repository tree;
# SunOS make will work only out of snapshots and releases.
if ( $OS eq 'SunOS' && !( -e '.svn' || -e '.git' )) {
$ENV{'PATH'} = '/usr/ccs/bin:' . $ENV{'PATH'};
}
$Path = $ENV{PATH};