From: Ramakrishnan Muthukrishnan Date: Sat, 18 Oct 2014 05:53:13 +0000 (+0530) Subject: Makefile: get the correct version string by grep'ing the _version.py. X-Git-Url: https://git.rkrishnan.org/pf/statistics?a=commitdiff_plain;h=2435560a80d4d53b50ffdc124a53a4599fc0c96b;p=tahoe-lafs%2Ftahoe-lafs.git Makefile: get the correct version string by grep'ing the _version.py. --- 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 \