0024494: Value of OCC_VERSION_DEVELOPMENT is not accounted in generated overview...
authorabv <abv@opencascade.com>
Tue, 24 Dec 2013 07:14:43 +0000 (11:14 +0400)
committerabv <abv@opencascade.com>
Tue, 24 Dec 2013 07:14:43 +0000 (11:14 +0400)
Parser of OCCT version corrected to include development macro in complete version number.

dox/occdoc.tcl

index 9914f57..3c391b8 100644 (file)
@@ -13,7 +13,7 @@ proc OverviewDoc_DetectCasVersion {theCasRoot} {
     set fh_loaded [read $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_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 }
   }
   return $occt_ver