From: Thomas Guyot-Sionnest Date: Thu, 27 Nov 2008 11:27:47 +0000 (-0500) Subject: tinderbox: Don't alter SunOS path if we're building off a repository tree X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d40abb2504b99e1318840ad1a5d9f4a340c465b5;p=nagiosplug.git tinderbox: Don't alter SunOS path if we're building off a repository tree SunOS make will work only out of snapshots and releases. --- diff --git a/tools/tinderbox_build b/tools/tinderbox_build index ab4234a..5035b60 100755 --- a/tools/tinderbox_build +++ b/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};