1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0024494: Value of OCC_VERSION_DEVELOPMENT is not accounted in generated overview documentation

Parser of OCCT version corrected to include development macro in complete version number.
This commit is contained in:
abv 2013-12-24 11:14:43 +04:00
parent c5a855f8b5
commit 12a45e038f

View File

@ -13,7 +13,7 @@ proc OverviewDoc_DetectCasVersion {theCasRoot} {
set fh_loaded [read $fh] set fh_loaded [read $fh]
close $fh close $fh
regexp {[^/]\s*#\s*define\s+OCC_VERSION_COMPLETE\s+\"([^\s]*)\"} $fh_loaded dummy occt_ver regexp {[^/]\s*#\s*define\s+OCC_VERSION_COMPLETE\s+\"([^\s]*)\"} $fh_loaded dummy occt_ver
regexp {^\s*#\s*define\s+OCC_VERSION_DEVELOPMENT\s+\"([^\s]*)\"} $fh_loaded dummy occt_ver_add regexp {[^/]\s*#\s*define\s+OCC_VERSION_DEVELOPMENT\s+\"([^\s]*)\"} $fh_loaded dummy occt_ver_add
if { "$occt_ver_add" != "" } { set occt_ver ${occt_ver}.$occt_ver_add } if { "$occt_ver_add" != "" } { set occt_ver ${occt_ver}.$occt_ver_add }
} }
return $occt_ver return $occt_ver