1. 27 Sep, 2016 1 commit
    • Brad King's avatar
      Simplify CMake per-source license notices · 86578ecc
      Brad King authored
      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.
  2. 15 Oct, 2013 1 commit
  3. 08 Sep, 2012 1 commit
  4. 19 Aug, 2012 2 commits
    • Rolf Eike Beer's avatar
      read less from version headers into variables · 4be67837
      Rolf Eike Beer authored
      Instead of reading the whole file using file(READ) and later matching on the
      whole file use file(STRINGS ... REGEX) to get only those lines we are
      interested in at all. This will make the list much smaller (good for debugging)
      and also the regular expressions will need to match on much smaller strings.
      Also unset the content variables once they are not used anymore.
    • Rolf Eike Beer's avatar
      do not escape spaces in regular expressions · 637207e6
      Rolf Eike Beer authored
      The space has no special meaning in regular expressions so it doesn't need to
      be escaped.
  5. 13 Aug, 2012 1 commit
    • Kitware Robot's avatar
      Remove CMake-language block-end command arguments · 9db31162
      Kitware Robot authored
      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
  6. 19 Jun, 2012 1 commit
  7. 19 Jun, 2011 1 commit
    • Modestas Vainius's avatar
      Documentation: Fix spelling / formatting errors (#12287) · d66459be
      Modestas Vainius authored
      The patch fixes the following problems spotted by lintian:
      W: cmake-data: manpage-has-errors-from-man usr/share/man/man1/cmakemodules.1.gz 2641: warning [p 39, 1.5i]: can't break line
      I: cmake-data: spelling-error-in-manpage usr/share/man/man1/cmakeprops.1.gz explict explicit
      I: cmake: spelling-error-in-binary usr/bin/cmake explict explicit
      I: cmake: spelling-error-in-binary usr/bin/cpack explict explicit
      I: cmake: spelling-error-in-binary usr/bin/ctest explict explicit
      W: cmake: manpage-has-errors-from-man usr/share/man/man1/cmake.1.gz 7300: warning [p 120, 3.3i]: can't break line
      I: cmake: spelling-error-in-manpage usr/share/man/man1/cmake.1.gz explict explicit
      I: cmake-curses-gui: spelling-error-in-binary usr/bin/ccmake explict explicit
      I: cmake-qt-gui: spelling-error-in-binary usr/bin/cmake-gui explict explicit
  8. 01 Apr, 2011 2 commits