From 586be50caeb0db191c1a02645a3dacb6efe92a0e Mon Sep 17 00:00:00 2001
From: Raymond Toy <toy.raymond@gmail.com>
Date: Tue, 31 Jan 2012 22:23:01 -0700
Subject: [PATCH] Use ppc as the default directory for ppc/darwin.

---
 bin/build.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/bin/build.sh b/bin/build.sh
index 537354b7d..85d70e71f 100755
--- a/bin/build.sh
+++ b/bin/build.sh
@@ -176,8 +176,11 @@ done
 # If -b not given, try to derive one instead of just using "build".
 if [ -z "$BASE" ]; then
     case `uname -s` in
-      Darwin) # We only support darwin-x86 now.  No ppc available anymore.
-	  BASE=darwin ;;
+      Darwin)
+          case `uname -p` in
+            powerpc) BASE=ppc ;;
+            i386) BASE=darwin ;;
+          esac ;;
       SunOS)
 	  case `uname -m` in
 	    sun4u) BASE=sparc ;;
-- 
GitLab