]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Rollback the comment generation.
authorakl <akl@opencascade.com>
Tue, 1 Apr 2014 10:38:40 +0000 (14:38 +0400)
committerakl <akl@opencascade.com>
Tue, 1 Apr 2014 10:38:40 +0000 (14:38 +0400)
src/Macro/CMakeLists.txt
src/Macro/modes.py

index 33bced28b2b4e58b5f531234c5769817988a1dfd..2a8ad152ea6a641ba9549e4e298b4f918c9bbd9c 100644 (file)
@@ -21,24 +21,4 @@ SET(_PYFILES_TO_INSTALL
   modes.py
   )
 
-# Add warning message into scripts to be installed
-INSTALL(CODE "
-  SET(warning_str \"\# DO NOT MAKE CHANGES to this file, it will be rewrote 
-\# on activation of SALOME PARAVIS module.
-\# Modify the source file instead.\")
-
-  FOREACH(file ${_PYFILES_TO_INSTALL})
-    SET(tmp_file tmp/\${file})
-    FILE(READ ${CMAKE_CURRENT_SOURCE_DIR}/\${file} tmp_string)
-    STRING(REPLACE \"\# Do not touch this anchor comment\" \"\${warning_str}\" new_tmp_string \${tmp_string})
-    FILE(WRITE \${tmp_file} \${new_tmp_string})
-  ENDFOREACH()
-")
-
-# Install of the modified scripts
-FOREACH(file ${_PYFILES_TO_INSTALL})
-  INSTALL_AND_COMPILE_PYTHON_FILE(${CMAKE_CURRENT_BINARY_DIR}/tmp/\${file} ${SALOME_INSTALL_SCRIPT_PYTHON}/Macro)
-ENDFOREACH()
-
-SET(MAKE_CLEAN_FILES tmp)
-SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${MAKE_CLEAN_FILES}")
+INSTALL_AND_COMPILE_PYTHON_FILE("${_PYFILES_TO_INSTALL}" ${SALOME_INSTALL_SCRIPT_PYTHON}/Macro)
index 731f6aeac2de2d43c312dedee19884c87543378d..eaf168fb8cd559c51cdf241179e14ce0d27e0af0 100644 (file)
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
-#
-# Do not touch this anchor comment
-#
-
 try: paraview.simple
 except: from paraview.simple import *
 paraview.simple._DisableFirstRenderCameraReset()