summaryrefslogtreecommitdiffstats
path: root/Modules/CMakePrintHelpers.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-01-04 19:43:10 (GMT)
committerBrad King <brad.king@kitware.com>2014-01-07 14:52:56 (GMT)
commitefc43cde8f9fd2aaa91f17ad9fc36822fcf9487c (patch)
tree805364e578f52dcb356aaafbc595236c13a5479d /Modules/CMakePrintHelpers.cmake
parent3917d86b261f0b88eb5cf0e8d2700c70cebdbe4b (diff)
downloadCMake-efc43cde8f9fd2aaa91f17ad9fc36822fcf9487c.zip
CMake-efc43cde8f9fd2aaa91f17ad9fc36822fcf9487c.tar.gz
CMake-efc43cde8f9fd2aaa91f17ad9fc36822fcf9487c.tar.bz2
Help: Fix some erroneous code block markers in Module docs.
There are many style errors in these files. This patch fixes only the syntactical errors. The script which ported these to rst tripped on some incorrectly formatted blocks in the original input documentation. Use a new script to find problematic code (and then fix them manually): #!/usr/bin/env python import os rootDir = '.' def checkFile(fname): f = open(fname) lines = f.readlines() started = False counter = 0 for l in lines: if "#" in l: started = True elif started: return lin = l.find("(") if lin != -1 and l.find(")", lin) == -1 and \ not "(To distribute this file outside of CMake, substitute the full" in l: for lp in lines[counter+1:]: if lp == "# ::\n": print "\n\n######### " + fname + "\n\n" print ''.join(lines[max(counter-2, 0):counter+6]) break elif lp == "#\n" : continue break counter += 1 for dirName, subdirList, fileList in os.walk(rootDir): for fname in fileList: checkFile(os.path.join(dirName, fname))
Diffstat (limited to 'Modules/CMakePrintHelpers.cmake')
-rw-r--r--Modules/CMakePrintHelpers.cmake9
1 files changed, 1 insertions, 8 deletions
diff --git a/Modules/CMakePrintHelpers.cmake b/Modules/CMakePrintHelpers.cmake
index 72832ad..ad3b0d5 100644
--- a/Modules/CMakePrintHelpers.cmake
+++ b/Modules/CMakePrintHelpers.cmake
@@ -4,22 +4,15 @@
#
# Convenience macros for printing properties and variables, useful e.g. for debugging.
#
-#
-#
-#
-#
-# CMAKE_PRINT_PROPERTIES([TARGETS target1 .. targetN]
-#
# ::
#
+# CMAKE_PRINT_PROPERTIES([TARGETS target1 .. targetN]
# [SOURCES source1 .. sourceN]
# [DIRECTORIES dir1 .. dirN]
# [TESTS test1 .. testN]
# [CACHE_ENTRIES entry1 .. entryN]
# PROPERTIES prop1 .. propN )
#
-#
-#
# This macro prints the values of the properties of the given targets,
# source files, directories, tests or cache entries. Exactly one of the
# scope keywords must be used. Example: