Skip to content
Snippets Groups Projects
Commit 36df5a26 authored by Lukasz Butkowski's avatar Lukasz Butkowski
Browse files

fix(version): decode version from tag with postfix e.g. 1.1.0-rc1

parent 539e12b1
Branches
Tags
No related merge requests found
......@@ -982,7 +982,7 @@ proc ::fwfwk::getVersion {{ns ::fwfwk}} {
} else {set VerCommits 0}
} else {
set match 0
regexp {(\d+)\.(\d+)[.]*(\d*)[-]*(\d*).*} $msg match VerMajor VerMinor VerPatch VerCommits
regexp {(\d+)\.(\d+)[.]*(\d*)[a-zA-Z0-9_-]*[-_]+(\d*)[-]+g\d+} $msg match VerMajor VerMinor VerPatch VerCommits
if { $match == 0 } { ::fwfwk::printWarning "NO VERSION. Latest TAG has no minimal semantic versioning <Major.Minor> syntax. e.g. 1.2.0"}
if { $VerPatch == "" } { set VerPatch 0; ::fwfwk::printWarning "Version Tag has no Patch Level. Setting Patch = 0"}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment