You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

147 lines
6.5 KiB

  1. ########################################################
  2. # FreeIPA Version #
  3. # #
  4. # FreeIPA versions are as follows #
  5. # 1.0.x New production series #
  6. # 1.0.x{alpha,beta,rc}y Alpha/Preview/Testing, Beta, #
  7. # Release Candidate #
  8. # 1.0.0.dev20170102030405+gitabcdefg Build from GIT #
  9. # #
  10. ########################################################
  11. ########################################################
  12. # This are the main version numbers #
  13. # #
  14. # <MAJOR>.<MINOR>.<RELEASE> #
  15. # #
  16. # e.g. define(IPA_VERSION_MAJOR, 1) #
  17. # define(IPA_VERSION_MINOR, 0) #
  18. # define(IPA_VERSION_RELEASE, 0) #
  19. # -> "1.0.0" #
  20. ########################################################
  21. define(IPA_VERSION_MAJOR, 4)
  22. define(IPA_VERSION_MINOR, 8)
  23. define(IPA_VERSION_RELEASE, 6)
  24. ########################################################
  25. # For 'pre' releases the version will be #
  26. # #
  27. # <MAJOR>.<MINOR>.<RELEASE><PRE_RELEASE> #
  28. # #
  29. # pre releases start with RELEASE 90. After pre1 has #
  30. # been released, RELEASE is bumpled to 91, and so on #
  31. # #
  32. # e.g. define(IPA_VERSION_PRE_RELEASE, rc1) #
  33. # -> "1.0.0rc1" #
  34. ########################################################
  35. define(IPA_VERSION_PRE_RELEASE, )
  36. ########################################################
  37. # To mark GIT snapshots this should be set to 'yes' #
  38. # in the development BRANCH, and set to 'no' only in #
  39. # the IPA_X_X_RELEASE BRANCH #
  40. # #
  41. # <MAJOR>.<MINOR>.<RELEASE>.dev<TIMESTAMP>+git<hash> #
  42. # #
  43. # e.g. define(IPA_VERSION_IS_GIT_SNAPSHOT, yes) #
  44. # -> "1.0.0.dev20170102030405+gitabcdefg" #
  45. # #
  46. # This option works only with GNU m4: #
  47. # it requires esyscmd m4 macro. #
  48. ########################################################
  49. define(IPA_VERSION_IS_GIT_SNAPSHOT, no)
  50. ########################################################
  51. # git development branch: #
  52. # #
  53. # - master: define(IPA_GIT_BRANCH, master) #
  54. # - ipa-X-X: define(IPA_GIT_BRANCH, #
  55. # ipa-IPA_VERSION_MAJOR-IPA_VERSION_MINOR) #
  56. ########################################################
  57. dnl define(IPA_GIT_BRANCH, master)
  58. define(IPA_GIT_BRANCH, ipa-IPA_VERSION_MAJOR-IPA_VERSION_MINOR)
  59. ########################################################
  60. # The version of IPA data. This is used to identify #
  61. # incompatibilities in data that could cause issues #
  62. # with replication. If the built-in versions don't #
  63. # match exactly then replication will fail. #
  64. # #
  65. # The format is %Y%m%d%H%M%S #
  66. # #
  67. # e.g. define(IPA_DATA_VERSION, 20100614120000) #
  68. # -> "20100614120000" #
  69. ########################################################
  70. define(IPA_DATA_VERSION, 20100614120000)
  71. ########################################################
  72. # The version of the IPA API. This controls which #
  73. # client versions can use the XML-RPC and json APIs #
  74. # #
  75. # A change to existing API requires a MAJOR version #
  76. # update. The addition of new API bumps the MINOR #
  77. # version. #
  78. # #
  79. # The format is a whole number #
  80. # #
  81. ########################################################
  82. define(IPA_API_VERSION_MAJOR, 2)
  83. define(IPA_API_VERSION_MINOR, 236)
  84. # Last change: Add trust_enable_agent.
  85. ########################################################
  86. # Following values are auto-generated from values above
  87. # That way m4 madness lies
  88. ########################################################
  89. ########################################################
  90. # IPA_NUM_VERSION is auto-generated
  91. # format suitable for aritmetical comparison.
  92. ########################################################
  93. dnl for some reason AC_SUBST([NUM_VERSION], [IPA_NUM_VERSION])
  94. dnl does not work when we use macro "format" instead of "esyscmd"
  95. define(IPA_NUM_VERSION, esyscmd(printf "%d%02d%02d" IPA_VERSION_MAJOR IPA_VERSION_MINOR IPA_VERSION_RELEASE))
  96. ########################################################
  97. # IPA_API_VERSION: format is APImajor.APIminor
  98. ########################################################
  99. define(IPA_API_VERSION, IPA_API_VERSION_MAJOR.IPA_API_VERSION_MINOR)
  100. ########################################################
  101. # IPA_VERSION is one string formated according to rules
  102. # described on top of this file
  103. ########################################################
  104. dnl helper for translit in IPA_VERSION
  105. define(NEWLINE,`
  106. ')
  107. dnl Git snapshot: dev20170102030405+gitabcdefg
  108. define(IPA_GIT_VERSION, translit(dnl remove new lines from version (from esyscmd)
  109. ifelse(IPA_VERSION_IS_GIT_SNAPSHOT, yes,dnl
  110. dev
  111. esyscmd(date -u +'%Y%m%d%H%M')dnl 20170102030405
  112. +git
  113. esyscmd(git log -1 --format="%h" HEAD),dnl abcdefg
  114. ), NEWLINE))
  115. dnl IPA_GIT_VERSION end
  116. define(IPA_VERSION, translit(dnl remove new lines from version (from esyscmd)
  117. dnl 1.0.0
  118. IPA_VERSION_MAJOR.IPA_VERSION_MINOR.IPA_VERSION_RELEASE
  119. IPA_VERSION_PRE_RELEASE
  120. dnl version with Git snapshot: 1.0.0.dev20170102030405+gitabcdefg
  121. ifelse(IPA_VERSION_IS_GIT_SNAPSHOT, yes,
  122. .
  123. IPA_GIT_VERSION),
  124. NEWLINE)) dnl IPA_VERSION end
  125. dnl DEBUG: uncomment following lines and run command m4 VERSION.m4
  126. dnl `IPA_VERSION: ''IPA_VERSION'
  127. dnl `IPA_GIT_VERSION: ''IPA_GIT_VERSION'
  128. dnl `IPA_GIT_BRANCH: ''IPA_GIT_BRANCH'
  129. dnl `IPA_API_VERSION: ''IPA_API_VERSION'
  130. dnl `IPA_DATA_VERSION: ''IPA_DATA_VERSION'
  131. dnl `IPA_NUM_VERSION: ''IPA_NUM_VERSION'