Salome HOME
Changed version number and use version number automatically in doc
authorbarate <barate>
Thu, 30 Sep 2010 07:55:17 +0000 (07:55 +0000)
committerbarate <barate>
Thu, 30 Sep 2010 07:55:17 +0000 (07:55 +0000)
CMakeLists.txt
doc/CMakeLists.txt
doc/version.texi [deleted file]
doc/version.texi.in [new file with mode: 0644]

index ed01c342cd3384fd50d447db0cb731e7bbb34181..7d503e3327d4732c5bf9e61d0b28c1d7234817e7 100644 (file)
@@ -52,6 +52,15 @@ IF (BUILD_PYTHON_WRAPPING)
     FIND_PACKAGE(SWIG)
 ENDIF (BUILD_PYTHON_WRAPPING)
 
+SET(CPACK_GENERATOR TGZ)
+SET(CPACK_SOURCE_GENERATOR TGZ ZIP)
+SET(CPACK_PACKAGE_VERSION_MAJOR 1)
+SET(CPACK_PACKAGE_VERSION_MINOR 2)
+SET(CPACK_PACKAGE_VERSION_PATCH 0rc1)
+SET(CPACK_SOURCE_IGNORE_FILES /\\\\.;/CVS/;~)
+SET(CPACK_SOURCE_PACKAGE_FILE_NAME
+    ${PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
+
 configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Batch_config.h.in ${CMAKE_CURRENT_BINARY_DIR}/Batch_config.h)
 
 INCLUDE(Summary)
@@ -64,14 +73,6 @@ ENDIF (Makeinfo_FOUND)
 
 add_subdirectory (misc)
 
-SET(CPACK_GENERATOR TGZ)
-SET(CPACK_SOURCE_GENERATOR TGZ ZIP)
-SET(CPACK_PACKAGE_VERSION_MAJOR 1)
-SET(CPACK_PACKAGE_VERSION_MINOR 1)
-SET(CPACK_PACKAGE_VERSION_PATCH 0)
-SET(CPACK_SOURCE_IGNORE_FILES /\\\\.;/CVS/;~)
-SET(CPACK_SOURCE_PACKAGE_FILE_NAME
-    ${PROJECT_NAME}-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
 INCLUDE(CPack)
 
 MARK_AS_ADVANCED(CMAKE_BACKWARDS_COMPATIBILITY EXECUTABLE_OUTPUT_PATH)
index a0af755016c885de5a280699e4c72565a5cfe840..05620bf6aaa35a28a31c13e2731b9e466c1c0564 100644 (file)
 #  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.texi.in ${CMAKE_CURRENT_BINARY_DIR}/version.texi)
+
 SET (TEXI_FILE ${CMAKE_CURRENT_SOURCE_DIR}/Batch.texi)
 
-ADD_CUSTOM_TARGET(doc ALL
-                  ${MAKEINFO_EXECUTABLE} --html ${TEXI_FILE} -I ${CMAKE_CURRENT_SOURCE_DIR}
-                  DEPENDS ${TEXI_FILE}
-                 )
+ADD_CUSTOM_TARGET(doc ALL ${MAKEINFO_EXECUTABLE} --html ${TEXI_FILE})
 
 FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Batch)
 
diff --git a/doc/version.texi b/doc/version.texi
deleted file mode 100644 (file)
index 00cc319..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-@set UPDATED 23 April 2010
-@set UPDATED-MONTH April 2010
-@set EDITION 1.1.0
-@set VERSION 1.1.0
diff --git a/doc/version.texi.in b/doc/version.texi.in
new file mode 100644 (file)
index 0000000..ea149e8
--- /dev/null
@@ -0,0 +1,2 @@
+@set UPDATED 23 April 2010
+@set VERSION @CPACK_PACKAGE_VERSION_MAJOR@.@CPACK_PACKAGE_VERSION_MINOR@.@CPACK_PACKAGE_VERSION_PATCH@