mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
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.2@50227 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
Makefile
2
Makefile
@@ -317,7 +317,7 @@ LIBEDIT=editline/libedit.a
|
|||||||
|
|
||||||
ifneq ($(wildcard .version),)
|
ifneq ($(wildcard .version),)
|
||||||
ASTERISKVERSION:=$(shell cat .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)
|
RPMVERSION:=$(shell sed 's/[-\/:]/_/g' .version)
|
||||||
else
|
else
|
||||||
RPMVERSION=unknown
|
RPMVERSION=unknown
|
||||||
|
Reference in New Issue
Block a user