From 2435560a80d4d53b50ffdc124a53a4599fc0c96b Mon Sep 17 00:00:00 2001
From: Ramakrishnan Muthukrishnan <ram@leastauthority.com>
Date: Sat, 18 Oct 2014 11:23:13 +0530
Subject: [PATCH] Makefile: get the correct version string by grep'ing the
 _version.py.

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index aa7cce04..6b0a7e74 100644
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ build-osx-pkg:
 # create component pkg
 	pkgbuild --root $(shell pwd) \
 	--identifier com.leastauthority.tahoe \
-	--version "$(shell bin/tahoe @python -c 'import allmydata; print allmydata.__version__')" \
+	--version $(shell sh -c "cat src/allmydata/_version.py | grep verstr | head -n 1 | cut -d' ' -f 3") \
 	--ownership recommended \
 	--install-location /Applications/tahoe.app \
 	--scripts $(shell pwd)/misc/build_helpers/osx/scripts \
-- 
2.45.2