]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Small improvement: remove redundant "VERSION" variables
authorvsr <vsr@opencascade.com>
Fri, 16 Aug 2013 06:57:57 +0000 (06:57 +0000)
committervsr <vsr@opencascade.com>
Fri, 16 Aug 2013 06:57:57 +0000 (06:57 +0000)
CMakeLists.txt
KERNEL_version.h.in
bin/VERSION.in
doc/docutils/conf.py.in
doc/salome/gui/static/header.html.in
doc/salome/tui/static/header.html.in
resources/KERNELCatalog.xml.in

index 12157d4723d4555abc10036f678be157b40a16f7..5e62058e24a4e60f5db4f6e4076030ae23f79e1e 100755 (executable)
@@ -34,9 +34,7 @@ SET(${PROJECT_NAME_UC}_MINOR_VERSION 2)
 SET(${PROJECT_NAME_UC}_PATCH_VERSION 0)
 SET(${PROJECT_NAME_UC}_VERSION
   ${${PROJECT_NAME_UC}_MAJOR_VERSION}.${${PROJECT_NAME_UC}_MINOR_VERSION}.${${PROJECT_NAME_UC}_PATCH_VERSION})
-
-SET(VERSION ${${PROJECT_NAME_UC}_VERSION})
-SET(VERSION_DEV "0")
+SET(${PROJECT_NAME_UC}_VERSION_DEV 1)
 
 # Our own set of macros:
 LIST(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/salome_adm/cmake_files")
@@ -169,7 +167,7 @@ ENDIF()
 # Header configuration
 # ====================
 EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "import sys; t=sys.argv[-1].split(\".\") ; t[:]=(int(elt) for elt in t) ; sys.stdout.write(\"0x%02x%02x%02x\"%tuple(t))" ${${PROJECT_NAME_UC}_VERSION}
-  OUTPUT_VARIABLE XVERSION)
+  OUTPUT_VARIABLE ${PROJECT_NAME_UC}_XVERSION)
 SET(input ${CMAKE_CURRENT_SOURCE_DIR}/KERNEL_version.h.in)
 SET(output ${CMAKE_CURRENT_BINARY_DIR}/KERNEL_version.h)
 MESSAGE(STATUS "Creation of ${output}")
index 9fa510c383ca5e96648c8d8d488ddbb5a08b18a3..b16822186be92a520f04ec300fdac58c7bc1f05a 100644 (file)
 #if !defined(__KERNEL_VERSION_H__)
 #define __KERNEL_VERSION_H__
 
-/*
-  KERNEL_VERSION is (major << 16) + (minor << 8) + patch.
+/*!
+  Specify version of SALOME KERNEL module, as follows
+
+  KERNEL_VERSION_MAJOR       : (integer) number identifying major version
+  KERNEL_VERSION_MINOR       : (integer) number identifying minor version
+  KERNEL_VERSION_MAINTENANCE : (integer) number identifying maintenance version
+  KERNEL_VERSION_STR         : (string)  complete version number "major.minor.maintenance"
+  KERNEL_VERSION             : (hex)     complete version number (major << 16) + (minor << 8) + maintenance
+  KERNEL_DEVELOPMENT         : (integer) indicates development version when set to 1
 */
 
-#define KERNEL_VERSION_STR "@KERNEL_VERSION@"
-#define KERNEL_VERSION     @XVERSION@
-#define KERNEL_DEVELOPMENT @VERSION_DEV@
+#define KERNEL_VERSION_MAJOR       @SALOMEKERNEL_MAJOR_VERSION@
+#define KERNEL_VERSION_MINOR       @SALOMEKERNEL_MINOR_VERSION@
+#define KERNEL_VERSION_MAINTENANCE @SALOMEKERNEL_PATCH_VERSION@
+#define KERNEL_VERSION_STR         "@SALOMEKERNEL_VERSION@"
+#define KERNEL_VERSION             @SALOMEKERNEL_XVERSION@
+#define KERNEL_DEVELOPMENT         @SALOMEKERNEL_VERSION_DEV@
 
 #endif // __KERNEL_VERSION_H__
index 8cc2a5bb451b72c4d71abf3151b42e98a3662b6e..ab506d68da700af196e93b7d35f8b83ef1d8bbb5 100755 (executable)
@@ -1,2 +1,2 @@
-[SALOME KERNEL] : @VERSION@
-[DEVELOPMENT] : @VERSION_DEV@
+[SALOME KERNEL] : @SALOMEKERNEL_VERSION@
+[DEVELOPMENT]   : @SALOMEKERNEL_VERSION_DEV@
index cea4f5734be1c9d34e18f0900315a986644a3428..f0efca241ccff0d3b04e547051c95af050fc20ea 100644 (file)
@@ -46,7 +46,7 @@ source_encoding = 'utf-8'
 master_doc = 'index'
 
 # General information about the project.
-project = 'KERNEL python packages'
+project = 'SALOME KERNEL python packages'
 copyright = '2010 EDF R&D'
 
 # The version info for the project you're documenting, acts as replacement for
@@ -54,9 +54,9 @@ copyright = '2010 EDF R&D'
 # built documents.
 #
 # The short X.Y version.
-version = '@VERSION@'
+version = '@SALOMEKERNEL_VERSION@'
 # The full version, including alpha/beta/rc tags.
-release = '@VERSION@'
+release = '@SALOMEKERNEL_VERSION@'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
index cd9329091cc664d09457377302e6d49acf311a30..fe321efa8ceca713a3f21a51c59f3f1bf3770f83 100755 (executable)
@@ -19,5 +19,5 @@ $extrastylesheet
 <body>
 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
 
-<div id="titlearea"><div align="right"><div class="version">Version: @VERSION@</div></div></div>
+<div id="titlearea"><div align="right"><div class="version">Version: @SALOMEKERNEL_VERSION@</div></div></div>
 <!-- end header part -->
index cd9329091cc664d09457377302e6d49acf311a30..fe321efa8ceca713a3f21a51c59f3f1bf3770f83 100755 (executable)
@@ -19,5 +19,5 @@ $extrastylesheet
 <body>
 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
 
-<div id="titlearea"><div align="right"><div class="version">Version: @VERSION@</div></div></div>
+<div id="titlearea"><div align="right"><div class="version">Version: @SALOMEKERNEL_VERSION@</div></div></div>
 <!-- end header part -->
index 1fdc30adac13d831419e2fd94a70074dbd267d65..5648c41fda83d0965b2bc2d63a7a2277424d061d 100644 (file)
@@ -75,7 +75,7 @@
                <component-username>Salome</component-username>
                <component-type>Other</component-type>
                <component-author>NRI</component-author>
-               <component-version>@VERSION@</component-version>
+               <component-version>@SALOMEKERNEL_VERSION@</component-version>
                <component-comment>GUI Neutral Context</component-comment>
                <component-multistudy>1</component-multistudy>
 
@@ -86,7 +86,7 @@
                <component-username>SalomeTestComponent</component-username>
                <component-type>Other</component-type>
                <component-author>NRI</component-author>
-               <component-version>@VERSION@</component-version>
+               <component-version>@SALOMEKERNEL_VERSION@</component-version>
                <component-comment>GUI Neutral Context</component-comment>
                <component-multistudy>1</component-multistudy>
                <constraint>'linux' ~ OS</constraint>
@@ -96,7 +96,7 @@
                <component-username>SALOME_TestComponentPy</component-username>
                <component-type>Other</component-type>
                <component-author>NRI</component-author>
-               <component-version>@VERSION@</component-version>
+               <component-version>@SALOMEKERNEL_VERSION@</component-version>
                <component-comment>GUI Neutral Context</component-comment>
                <component-multistudy>1</component-multistudy>
                <constraint>'linux' ~ OS</constraint>