Commit Graph

14 Commits

Author SHA1 Message Date
Kitware Robot
9db3116226 Remove CMake-language block-end command arguments
Ancient versions of CMake required else(), endif(), and similar block
termination commands to have arguments matching the command starting the
block.  This is no longer the preferred style.

Run the following shell code:

for c in else endif endforeach endfunction endmacro endwhile; do
    echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/'
done >convert.sed &&
git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
egrep -z -v 'Tests/CMakeTests/While-Endwhile-' |
xargs -0 sed -i -f convert.sed &&
rm convert.sed
2012-08-13 14:19:16 -04:00
Kitware Robot
77543bde41 Convert CMake-language commands to lower case
Ancient CMake versions required upper-case commands.  Later command
names became case-insensitive.  Now the preferred style is lower-case.

Run the following shell code:

cmake --help-command-list |
grep -v "cmake version" |
while read c; do
    echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g'
done >convert.sed &&
git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
xargs -0 sed -i -f convert.sed &&
rm convert.sed
2012-08-13 14:19:16 -04:00
Brad King
1d91bc64aa Remove unused DumpDocumentation code
The DumpDocumentation executable and some supporting code and tests were
completely unused by CMake.  Generation of documentation is done by the
individual executables with --help* options.  In this commit we simply
remove the unused code, executable, and test.
2009-12-08 09:38:36 -05:00
Ken Martin
ce8810c4e7 ENH: preclean some warnings 2008-03-25 11:27:18 -04:00
Ken Martin
8d32d229a3 ENH: make commands lower case by default 2007-10-10 11:47:43 -04:00
Brad King
de8080c76f ENH: Added test for IF(DEFINED ENV{var})(. 2006-02-10 15:45:27 -05:00
Andy Cedilnik
26765e815f ENH: Test setting of environment variables 2005-06-03 14:42:05 -04:00
Brad King
e64f3c8b67 BUG: Fix for space in path for chdir test. We just need to double-quote the arguments. 2005-02-17 07:53:03 -05:00
Bill Hoffman
ee0db4aeb4 BUG: fix CommandLine test problems with spaces and testing for the return value 2005-02-16 13:15:25 -05:00
Andy Cedilnik
0b2bdfa289 ENH: Add some ctest coverage 2004-05-10 18:06:11 -04:00
Andy Cedilnik
df31c576dc ENH: Add support for automatically preloaded cmake file. Closes Bug #802 - Add auto preload file support in CMake 2004-04-28 10:52:20 -04:00
Brad King
9e44bcf313 ENH: Added test of --copyright and --version arguments for coverage. 2003-08-05 18:25:47 -04:00
Brad King
894a198906 ENH: Added test of --help [command] form of help option for coverage. 2003-08-05 18:22:45 -04:00
Brad King
08441daded ENH: Added CommandLineTest to add coverage for command line arguments to cmake executables. This replaces the old DumpDocumentation test. 2003-07-24 10:58:40 -04:00