Title: [commits] (bear) [11278] Merging platform name fix from trunk - this will name the distribution file correctly on intel Macs
Revision
11278
Author
bear
Date
2006-07-28 12:07:12 -0700 (Fri, 28 Jul 2006)

Log Message

Merging platform name fix from trunk - this will name the distribution file correctly on intel Macs

Modified Paths

Diff

Modified: branches/0.7alpha3/chandler/__hardhat__.py (11277 => 11278)

--- branches/0.7alpha3/chandler/__hardhat__.py	2006-07-28 18:48:11 UTC (rev 11277)
+++ branches/0.7alpha3/chandler/__hardhat__.py	2006-07-28 19:07:12 UTC (rev 11278)
@@ -1,4 +1,4 @@
-import os, hardhatlib, hardhatutil, sys
+import os, hardhatlib, hardhatutil, sys, platform
 
 info = {
         'name':'chandler',
@@ -30,8 +30,10 @@
 
     if buildenv['version'] == 'debug':
         if buildenv['os'] == 'osx':
-
-            distName = 'Chandler_osx_debug_' + buildName
+            if platform.processor() == 'i386':
+                distName = 'Chandler_iosx_debug_' + buildName
+            else:
+                distName = 'Chandler_osx_debug_' + buildName
             # when we make an osx distribution, we actually need to put it
             # in a subdirectory (which has a .app extension).  So we set
             # 'distdir' temporarily to that .app dir so that handleManifest()
@@ -118,8 +120,10 @@
             installTargetFile = hardhatlib.makeInstaller(buildenv, [distName], distName, majorVersion, minorVersion, releaseVersion)
 
         if buildenv['os'] == 'osx':
-
-            distName = 'Chandler_osx_' + buildName
+            if platform.processor() == 'i386':
+                distName = 'Chandler_iosx_' + buildName
+            else:
+                distName = 'Chandler_osx_' + buildName
             # when we make an osx distribution, we actually need to put it
             # in a subdirectory (which has a .app extension).  So we set
             # 'distdir' temporarily to that .app dir so that handleManifest()




_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to