From 6a82123e6e6592acf307ef6248df7a1cab9acd80 Mon Sep 17 00:00:00 2001 From: Charles Lehner Date: Wed, 2 Jan 2013 18:05:42 -0500 Subject: [PATCH] Use find instead of mdfind in Mac build script. This is for compatibility with Mac OS X 10.5 Leopard, which does not have mdfind -name. --- setup-release.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-release.py b/setup-release.py index 33314de8e..608ad4d06 100644 --- a/setup-release.py +++ b/setup-release.py @@ -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):