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/a?a=commitdiff_plain;h=refs%2Fpull%2F121%2Fhead;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 \