summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-04-19 14:02:40 +0200
committerRob Crittenden <rcritten@redhat.com>2013-04-19 10:55:05 -0400
commit9125285a051b133149f887130051b63c6d650971 (patch)
treef73731ee66373d6767124e1172ae8f034247e16e /Makefile
parent18149fadb6a78a736d434634939074ea34bee79b (diff)
downloadfreeipa-9125285a051b133149f887130051b63c6d650971.tar.gz
freeipa-9125285a051b133149f887130051b63c6d650971.tar.xz
freeipa-9125285a051b133149f887130051b63c6d650971.zip
Use two digits for each part of NUM_VERSION
https://fedorahosted.org/freeipa/ticket/3545
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 903496967..8f4053b5d 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,8 @@ TARGET ?= master
SUPPORTED_PLATFORM ?= redhat
+IPA_NUM_VERSION ?= $(shell printf %02d%02d%02d $(IPA_VERSION_MAJOR) $(IPA_VERSION_MINOR) $(IPA_VERSION_RELEASE))
+
# After updating the version in VERSION you should run the version-update
# target.
@@ -116,11 +118,11 @@ version-update: release-update
> ipapython/setup.py
sed -e s/__VERSION__/$(IPA_VERSION)/ ipapython/version.py.in \
> ipapython/version.py
- perl -pi -e "s:__NUM_VERSION__:$(IPA_VERSION_MAJOR)$(IPA_VERSION_MINOR)$(IPA_VERSION_RELEASE):" ipapython/version.py
+ perl -pi -e "s:__NUM_VERSION__:$(IPA_NUM_VERSION):" ipapython/version.py
perl -pi -e "s:__API_VERSION__:$(IPA_API_VERSION_MAJOR).$(IPA_API_VERSION_MINOR):" ipapython/version.py
sed -e s/__VERSION__/$(IPA_VERSION)/ daemons/ipa-version.h.in \
> daemons/ipa-version.h
- perl -pi -e "s:__NUM_VERSION__:$(IPA_VERSION_MAJOR)$(IPA_VERSION_MINOR)$(IPA_VERSION_RELEASE):" daemons/ipa-version.h
+ perl -pi -e "s:__NUM_VERSION__:$(IPA_NUM_VERSION):" daemons/ipa-version.h
perl -pi -e "s:__DATA_VERSION__:$(IPA_DATA_VERSION):" daemons/ipa-version.h
sed -e s/__VERSION__/$(IPA_VERSION)/ -e s/__RELEASE__/$(IPA_RPM_RELEASE)/ \