Permalink
Browse files

Slightly move definition of $vers and $version that we've been relying

on so that they get defined on PowerPC as well.
  • Loading branch information...
1 parent 40a9a61 commit fee1156bb467c822826fd3a4a9b0b323ef42efff @akhansen akhansen committed Apr 9, 2012
Showing with 9 additions and 9 deletions.
  1. +9 −9 bootstrap
View
@@ -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
@@ -171,7 +172,6 @@ if ($arch eq "i386") {
}
-
### patch FinkVersion.pm.in ###
{

0 comments on commit fee1156

Please sign in to comment.