]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add a "strip-comments" target in DEAL_II_INVOKE_AUTOPILOT
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 10 Jan 2013 06:53:32 +0000 (06:53 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 10 Jan 2013 06:53:32 +0000 (06:53 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_cmake@28004 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/macros/macro_deal_ii_invoke_autopilot.cmake

index 0403eab2a8cce1a62dc4cdc1abaf91e77554fc06..bd879687c17c9e51bc9fb0324b7f5132bac6e23c 100644 (file)
@@ -86,6 +86,12 @@ MACRO(DEAL_II_INVOKE_AUTOPILOT)
       COMMENT "distclean invoked"
       )
 
+    # Define a strip-comments target:
+    ADD_CUSTOM_TARGET(strip-comments
+      COMMAND perl -pi -e 's\#^[ \\t]*//.*\\n\#\#g;' ${TARGET_SRC}
+      COMMENT "strip comments"
+      )
+
     # Print out some usage information:
     MESSAGE(
 "###

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.