Commit Graph

16 Commits

Author SHA1 Message Date
Brad King 86578eccf2 Simplify CMake per-source license notices
Per-source copyright/license notice headers that spell out copyright holder
names and years are hard to maintain and often out-of-date or plain wrong.
Precise contributor information is already maintained automatically by the
version control tool.  Ultimately it is the receiver of a file who is
responsible for determining its licensing status, and per-source notices are
merely a convenience.  Therefore it is simpler and more accurate for
each source to have a generic notice of the license name and references to
more detailed information on copyright holders and full license terms.

Our `Copyright.txt` file now contains a list of Contributors whose names
appeared source-level copyright notices.  It also references version control
history for more precise information.  Therefore we no longer need to spell
out the list of Contributors in each source file notice.

Replace CMake per-source copyright/license notice headers with a short
description of the license and links to `Copyright.txt` and online information
available from "https://cmake.org/licensing".  The online URL also handles
cases of modules being copied out of our source into other projects, so we
can drop our notices about replacing links with full license text.

Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority
of the replacements mechanically.  Manually fix up shebang lines and trailing
newlines in a few files.  Manually update the notices in a few files that the
script does not handle.
2016-09-27 15:14:44 -04:00
Kitware Robot f051814ed0 Convert builtin help to reStructuredText source files
Run the convert-help.bash script to convert documentation:

 ./convert-help.bash "/path/to/CMake-build/bin"

Then remove it.
2013-10-15 14:12:03 -04:00
Andreas Mohr bf019d765d Fix spelling and typos (non-binary) 2013-05-07 08:39:19 -04:00
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 3a666595c9 Convert CMake non-find modules to BSD License
This adds copyright/license notification blocks CMake's non-find
modules.  Most 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:46:51 -04:00
Alexander Neundorf 5586c6f41b ENH: now also the "ecosclean" target works with MS nmake
Alex
2007-02-07 14:50:45 -05:00
Alexander Neundorf 863f2b76cb BUG: reent.c wasn't intended to be committed, too special
Alex
2007-01-23 13:41:35 -05:00
Alexander Neundorf 152040fd83 STYLE: use even more absolute paths, can't hurt for out-of-source builds
STYLE: use SET_SOURCE_FILES_PROPERTIES() on multiple files at once instead
of interating over each one of them
STYLE: no need to add target.ld to the clean-files, this is done now automatically by add_custom_command()
ENH: now also MS nmake can be used to build ecos apps

Alex
2007-01-23 13:29:44 -05:00
Alexander Neundorf c37f2c20d9 ENH: the ecos headers are always in the binary dir
Alex
2007-01-17 14:06:18 -05:00
Alexander Neundorf 4cb8e3c43f ENH: building ecos apps now seems to work also out-of-source
Alex
2007-01-17 13:57:34 -05:00
Alexander Neundorf c6f74dfe3b BUG: also check that tclsh is available, otherwise you can't build any eCos
stuff
ENH: make the name of the config file ecos.ecc adjustable via the new
variable ECOS_CONFIG_FILE

Alex
2007-01-17 13:45:28 -05:00
Alexander Neundorf 2776e2de4e ENH: add i386 toolchain and some minor improvement of the comments 2006-08-23 18:11:51 -04:00
Alexander Neundorf f05fe5f414 STYLE: don't use the hack to copy and rename the created executable under
cygwin but instead use the SUFFIX target property (I'll publish a short
article about ecos+cmake RSN)

Alex
2006-08-22 18:33:49 -04:00
Alexander Neundorf d184c10c69 BUG: finally really fix #2576 by adding UseEcos.cmake to cvs :-)
Alex
2006-04-23 08:08:46 -04:00