Commit Graph

15 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
Todd Gamblin 2cde67a781 Modules: Fix spelling 'To distributed' -> 'To distribute' 2010-08-09 08:48:31 -04:00
Brad King c4bb9c9d42 Convert CMake find-modules to BSD License
This adds copyright/license notification blocks CMake's find-modules.
Many of the modules had no notices at all.  Some had notices referring
to the BSD license already.  This commit normalizes existing notices and
adds missing notices.
2009-09-28 11:45:50 -04:00
Ken Martin d2689c95a1 ENH: some style fixes for the book 2005-12-15 10:41:19 -05:00
Bill Hoffman b7fa820118 ENH: add documentation support for modules 2005-12-14 13:51:08 -05:00
Brad King 2ad267cff3 ENH: Updated search paths to newest values from Cable. 2003-04-22 16:10:18 -04:00
Brad King 3d3d7a9146 BUG: Should not load CMAKE_INSTALL_PREFIX from the cache. 2002-10-11 10:14:19 -04:00
Sebastien Barre 64a1707aee ENH: clean modules (doc, make stuff advanced, etc.) 2002-06-14 16:49:00 -04:00
Brad King c83a8ac286 ENH: Updated for latest Cable from CVS. Old alpha version of Cable is no longer supported. 2002-04-17 14:52:28 -04:00
Brad King e2eaa3efba ENH: Changed CABLE_BUILD_DIR to look for cableVersion.h instead of cable.README.txt. 2001-10-03 11:36:10 -04:00
Brad King bfe2cdd558 ENH: Added support for finding cable when it is built in a configuration subdirectory by MSVC. 2001-09-20 10:57:56 -04:00
Brad King 0598697998 ENH: Added find support for looking at Cable's build directory if the user sets the CABLE_BUILD_DIR cache entry. 2001-09-17 14:16:20 -04:00
Brad King f1e2a7062b ENH: Updated library finding code to handle new cable installation directory structure. It now uses separate directories for CxxTypes and WrapTclFacility headers. 2001-08-29 17:08:49 -04:00
Brad King 2c3a1729a3 ENH: Support to find CABLE utility if it is installed. 2001-08-01 16:11:54 -04:00