aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-10 02:16:45 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-01-10 02:16:45 +0000
commit5b79d7465dc61bf15eba397460ef2cff1af438cc (patch)
treec156160cd4a873ef99483ead869e16740fe23cfe /Makefile
parentc7b61e06c6ea7a1fd9ba7aa42ecacdf3132f7c0c (diff)
Make the number that represents the major version number a single digit instead
of 2. Using two digits makes it an octal number when put into version.h, which breaks the compilation of any out of tree module that checks the version for any version after 1.2.7 (reported by Matteo Brancaleoni on the asterisk-dev mailing list, who gave credit to vihai for pointing it out) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@50227 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 921d76810..99512e20e 100644
--- a/Makefile
+++ b/Makefile
@@ -317,7 +317,7 @@ LIBEDIT=editline/libedit.a
ifneq ($(wildcard .version),)
ASTERISKVERSION:=$(shell cat .version)
- ASTERISKVERSIONNUM:=$(shell awk -F. '{printf "%02d%02d%02d", $$1, $$2, $$3}' .version)
+ ASTERISKVERSIONNUM:=$(shell awk -F. '{printf "%01d%02d%02d", $$1, $$2, $$3}' .version)
RPMVERSION:=$(shell sed 's/[-\/:]/_/g' .version)
else
RPMVERSION=unknown