mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-20 04:35:00 +08:00
Fix version number verification to allow releases
The verification of version number in version.config required pre-release label always. This fixes the bug and allows release versions.
This commit is contained in:
parent
b21d8631dc
commit
c7a12d18a1
@ -30,7 +30,7 @@ endfunction()
|
|||||||
|
|
||||||
configure_file("version.config" "version.config" COPYONLY)
|
configure_file("version.config" "version.config" COPYONLY)
|
||||||
file(READ version.config VERSION_CONFIG)
|
file(READ version.config VERSION_CONFIG)
|
||||||
set(VERSION_REGEX "version[\t ]*=[\t ]*([0-9]+\\.[0-9]+\\.*[0-9]*)([-]([a-z]+[0-9]*))?([-](dev))?\r?\nupdate_from_version[\t ]*=[\t ]*([0-9]+\\.[0-9]+\\.*[0-9]*([-]([a-z]+[0-9]*)))*(\r?\n)*$")
|
set(VERSION_REGEX "version[\t ]*=[\t ]*([0-9]+\\.[0-9]+\\.*[0-9]*)([-]([a-z]+[0-9]*))?([-](dev))?\r?\nupdate_from_version[\t ]*=[\t ]*([0-9]+\\.[0-9]+\\.*[0-9]*([-]([a-z]+[0-9]*))?)*(\r?\n)*$")
|
||||||
|
|
||||||
if (NOT (${VERSION_CONFIG} MATCHES ${VERSION_REGEX}))
|
if (NOT (${VERSION_CONFIG} MATCHES ${VERSION_REGEX}))
|
||||||
message(FATAL_ERROR "Cannot read version from version.config")
|
message(FATAL_ERROR "Cannot read version from version.config")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user