mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-17 19:13:16 +08:00
Fix update script generation for versions with suffix
This commit is contained in:
parent
cc94d56d0e
commit
5b97d8b3a9
@ -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