]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Bugfix: Do not copy over ".svn" directories in build tests
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 19 Sep 2013 19:55:08 +0000 (19:55 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 19 Sep 2013 19:55:08 +0000 (19:55 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30843 0785d39b-7218-0410-832d-ea1e28bc413d

tests/build_tests/CMakeLists.txt

index 7b57999b32b6685437459a5dd8b0171c0537113d..382b3b38f1c26cd0903badbf12c165f9658cd3bc 100644 (file)
@@ -63,13 +63,19 @@ FOREACH(_step_full ${_steps})
       SET(_step_dir ${CMAKE_CURRENT_BINARY_DIR}/${_step}.${_build_lowercase})
 
       FILE(GLOB _files ${_step_full}/*)
-      LIST(REMOVE_ITEM _files ${_step_full}/doc)
+      SET(_command)
+      FOREACH(_file ${_files})
+        IF(NOT _file MATCHES "/(doc|.svn)")
+          LIST(APPEND _command
+            COMMAND ${CMAKE_COMMAND} -E copy ${_file} ${_step_dir}
+            )
+        ENDIF()
+      ENDFOREACH()
 
       # A rule how to copy the example step to the current directory:
       ADD_CUSTOM_COMMAND(OUTPUT ${_step_dir}/CMakeLists.txt
-        COMMAND ${CMAKE_COMMAND} -E copy_directory ${_step_full} ${_step_dir}
-        # Todo: Refactor:
-        COMMAND ${CMAKE_COMMAND} -E remove_directory ${_step_dir}/doc
+        COMMAND ${CMAKE_COMMAND} -E make_directory ${_step_dir}
+        ${_command}
         DEPENDS ${_files}
         )
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.