diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2011-07-07 17:15:48 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2011-07-07 17:15:48 -0500 |
commit | 033e78d1bba3038a126233520c7b84bc81166d45 (patch) | |
tree | 7079ce64cb250c41900ace5e86165fca1c535471 /osx/Makefile | |
parent | 2d299d9132d7288d228f5a52413f9e28dd889ece (diff) | |
parent | 2659263b9a6660e0dbcb3cac1967714b8cfb3639 (diff) | |
download | bcfg2-033e78d1bba3038a126233520c7b84bc81166d45.tar.gz bcfg2-033e78d1bba3038a126233520c7b84bc81166d45.tar.bz2 bcfg2-033e78d1bba3038a126233520c7b84bc81166d45.zip |
Merge branch 'master' of https://github.com/rcuza/bcfg2
Diffstat (limited to 'osx/Makefile')
-rw-r--r-- | osx/Makefile | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/osx/Makefile b/osx/Makefile index 075628668..a5920a5eb 100644 --- a/osx/Makefile +++ b/osx/Makefile @@ -1,6 +1,6 @@ -PYVERSION := $(shell /usr/bin/python -c "import sys; print sys.version[0:3]") -PYMAJORVERSION := $(shell /usr/bin/python -c "import sys; print sys.version[0:1]") -PYMINORVERSION := $(shell /usr/bin/python -c "import sys; print sys.version[2:3]") +PYVERSION := $(shell /usr/bin/python -c "import sys; print '%s.%s' % (sys.version_info[0], sys.version_info[1])") +PYMAJORVERSION := $(shell /usr/bin/python -c "import sys; print sys.version_info[0]") +PYMINORVERSION := $(shell /usr/bin/python -c "import sys; print sys.version_info[1]") PREFLIGHT = preflight POSTFLIGHT = postflight PKGROOT = bcfg2pkg @@ -29,13 +29,9 @@ SITELIBDIR = /Library/Python/${PYVERSION}/site-packages # an Info.plist file for packagemaker to look at for package creation # and substitute the version strings. Major/Minor versions can only be # integers (e.g. "1" and "00" for bcfg2 version 1.0.0. -BCFGVER = $(shell /usr/bin/grep version ../setup.py | cut -d\" -f2) -BCFGVER1 = $(shell /bin/echo ${BCFGVER} | /usr/bin/cut -d"." -f1) -BCFGVER2 = $(shell /bin/echo ${BCFGVER} | /usr/bin/cut -d"." -f2) -BCFGVER3 = $(shell /bin/echo ${BCFGVER} | /usr/bin/cut -d"." -f3) -BCFGVER3I = $(shell /usr/bin/python -c "import sys; print sys.argv[1][0:1]" ${BCFGVER3}) -MAJOR = ${BCFGVER1} -MINOR = ${BCFGVER2}${BCFGVER3I} +BCFGVER = 1.2.0pre3 +MAJOR = 1 +MINOR = 20 default: clean client |