Skip to content

Commit

Permalink
Slightly move definition of $vers and $version that we've been relying
Browse files Browse the repository at this point in the history
on so that they get defined on PowerPC as well.
  • Loading branch information
akhansen committed Apr 9, 2012
1 parent 40a9a61 commit fee1156
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,17 @@ if (not defined $arch) {
### 64bit capability

my ($version, $vers);
foreach (split /:/, $ENV{PATH}) {
# check some common places (why aren't we using $ENV{PATH}?)
if (-x $_) {
chomp($version = `$_/uname -r 2>/dev/null`);
last;
}
}
($vers) = split( /\./, $version );

# are we on intel?
if ($arch eq "i386") {
foreach ('/usr/bin/uname', '/bin/uname') {
# check some common places (why aren't we using $ENV{PATH}?)
if (-x $_) {
chomp($version = `$_ -r 2>/dev/null`);
last;
}
}
($vers) = split( /\./, $version );
# is Darwin at least 9?
if ((defined $vers) and ($vers >= 9)) {
# check for 64bit capability
Expand Down Expand Up @@ -171,7 +172,6 @@ if ($arch eq "i386") {
}



### patch FinkVersion.pm.in ###

{
Expand Down

0 comments on commit fee1156

Please sign in to comment.