summaryrefslogtreecommitdiffstats
path: root/osx
diff options
context:
space:
mode:
authorRaul Cuza <raulcuza@gmail.com>2011-01-31 15:15:04 -0500
committerRaul Cuza <raulcuza@gmail.com>2011-01-31 15:15:04 -0500
commitff9af3ba103fef9f6666ef697d5d8c9e368c574e (patch)
tree15ed1fab2d8c0d661ea617862df25694f50c4edf /osx
parent356fbb7a745bdcbbc2c2f10083c6867d423ceffc (diff)
downloadbcfg2-ff9af3ba103fef9f6666ef697d5d8c9e368c574e.tar.gz
bcfg2-ff9af3ba103fef9f6666ef697d5d8c9e368c574e.tar.bz2
bcfg2-ff9af3ba103fef9f6666ef697d5d8c9e368c574e.zip
Modify how MINOR variable is created so that it is always an integer.
Info.plist requires that IFMinorVersion be an integer. The new hack assumes that the first character in the third section of the setup.py version variable is always an integer.
Diffstat (limited to 'osx')
-rw-r--r--osx/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/osx/Makefile b/osx/Makefile
index 1e16d7b6c..1c75bb4ef 100644
--- a/osx/Makefile
+++ b/osx/Makefile
@@ -33,8 +33,9 @@ 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}${BCFGVER3}
+MINOR = ${BCFGVER2}${BCFGVER3I}
default: clean client