Browse Source

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

SunOS make will work only out of snapshots and releases.
Thomas Guyot-Sionnest 17 years ago
parent
commit
d40abb2504
1 changed files with 4 additions and 2 deletions
  1. 4 2
      tools/tinderbox_build

+ 4 - 2
tools/tinderbox_build

@@ -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};