From 8fb6be645ec0be135a9a9aa9db2eb0679b86376e Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 10 Jan 2007 02:17:46 +0000 Subject: [PATCH] Merged revisions 50227 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r50227 | russell | 2007-01-09 21:16:45 -0500 (Tue, 09 Jan 2007) | 6 lines 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: https://origsvn.digium.com/svn/asterisk/branches/1.4@50228 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3b60b535f6..4716158d79 100644 --- a/Makefile +++ b/Makefile @@ -223,7 +223,7 @@ endif ASTERISKVERSION:=$(shell build_tools/make_version .) ifneq ($(wildcard .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