Use find instead of mdfind in Mac build script.
authorCharles Lehner <celehner1@gmail.com>
Wed, 2 Jan 2013 23:05:42 +0000 (18:05 -0500)
committerCharles Lehner <celehner1@gmail.com>
Wed, 2 Jan 2013 23:08:27 +0000 (18:08 -0500)
This is for compatibility with Mac OS X 10.5 Leopard,
which does not have mdfind -name.

setup-release.py

index 33314de..608ad4d 100644 (file)
@@ -60,7 +60,7 @@ if sys.platform == 'darwin':
       qt_menu_location = "/opt/local/lib/Resources/qt_menu.nib"
     else:
       # No dice? Then let's try the brew version
-      qt_menu_location = os.popen("mdfind -name qt_menu.nib | grep Cellar | head").read()
+      qt_menu_location = os.popen("find /usr/local/Cellar -name qt_menu.nib | head").read()
       qt_menu_location = re.sub('\n','', qt_menu_location)
 
     if(len(qt_menu_location) == 0):