| 1 |
# ================================================== |
|---|
| 2 |
# Versioning |
|---|
| 3 |
# ========== |
|---|
| 4 |
# |
|---|
| 5 |
# MAJOR Major number for this branch. |
|---|
| 6 |
# |
|---|
| 7 |
# MINOR The most recent interface number this |
|---|
| 8 |
# library implements. |
|---|
| 9 |
# |
|---|
| 10 |
# COMPATMINOR The latest binary compatible minor number |
|---|
| 11 |
# this library implements. |
|---|
| 12 |
# |
|---|
| 13 |
# PATCH The implementation number of the current interface. |
|---|
| 14 |
# |
|---|
| 15 |
# |
|---|
| 16 |
# - The package VERSION will be MAJOR.MINOR.PATCH. |
|---|
| 17 |
# |
|---|
| 18 |
# - Libtool's -version-info will be derived from MAJOR, MINOR, PATCH |
|---|
| 19 |
# and COMPATMINOR (see configure.ac). |
|---|
| 20 |
# |
|---|
| 21 |
# - Changing MAJOR always breaks binary compatibility. |
|---|
| 22 |
# |
|---|
| 23 |
# - Changing MINOR doesn't break binary compatibility by default. |
|---|
| 24 |
# Only if COMPATMINOR is changed as well. |
|---|
| 25 |
# |
|---|
| 26 |
# |
|---|
| 27 |
# 1) After branching from TRUNK increment TRUNKs MAJOR and |
|---|
| 28 |
# start with version `MAJOR.0.0' and also set COMPATMINOR to 0. |
|---|
| 29 |
# |
|---|
| 30 |
# 2) Update the version information only immediately before a public release |
|---|
| 31 |
# of your software. More frequent updates are unnecessary, and only guarantee |
|---|
| 32 |
# that the current interface number gets larger faster. |
|---|
| 33 |
# |
|---|
| 34 |
# 3) If the library source code has changed at all since the last update, |
|---|
| 35 |
# then increment PATCH. |
|---|
| 36 |
# |
|---|
| 37 |
# 4) If any interfaces have been added, removed, or changed since the last |
|---|
| 38 |
# update, increment MINOR, and set PATCH to 0. |
|---|
| 39 |
# |
|---|
| 40 |
# 5) If any interfaces have been added since the last public release, then |
|---|
| 41 |
# leave COMPATMINOR unchanged. (binary compatible change) |
|---|
| 42 |
# |
|---|
| 43 |
# 6) If any interfaces have been removed since the last public release, then |
|---|
| 44 |
# set COMPATMINOR to MINOR. (binary incompatible change) |
|---|
| 45 |
# |
|---|
| 46 |
EXECUTE_PROCESS(COMMAND grep VERSION_MAJOR= ${CMAKE_SOURCE_DIR}/configure.in COMMAND cut -d = -f 2 COMMAND tr -d \n OUTPUT_VARIABLE VERSION_MAJOR) |
|---|
| 47 |
EXECUTE_PROCESS(COMMAND grep VERSION_MINOR= ${CMAKE_SOURCE_DIR}/configure.in COMMAND cut -d = -f 2 COMMAND tr -d \n OUTPUT_VARIABLE VERSION_MINOR) |
|---|
| 48 |
EXECUTE_PROCESS(COMMAND grep VERSION_RELEASE= ${CMAKE_SOURCE_DIR}/configure.in COMMAND cut -d = -f 2 COMMAND tr -d \n OUTPUT_VARIABLE VERSION_RELEASE) |
|---|
| 49 |
|
|---|
| 50 |
SET(OPENWSMAN_MAJOR ${VERSION_MAJOR}) |
|---|
| 51 |
SET(OPENWSMAN_MINOR ${VERSION_MINOR}) |
|---|
| 52 |
SET(OPENWSMAN_PATCH ${VERSION_RELEASE}) |
|---|