diff options
author | Petr Viktorin <pviktori@redhat.com> | 2013-04-19 14:02:40 +0200 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2013-04-19 10:55:05 -0400 |
commit | 9125285a051b133149f887130051b63c6d650971 (patch) | |
tree | f73731ee66373d6767124e1172ae8f034247e16e /Makefile | |
parent | 18149fadb6a78a736d434634939074ea34bee79b (diff) | |
download | freeipa-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-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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)/ \ |