[Cmake-commits] [cmake-commits] king committed ModuleNoticesTest.cmake.in 1.1 1.2

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Oct 1 14:23:01 EDT 2009


Update of /cvsroot/CMake/CMake/Tests/CMakeTests
In directory public:/mounts/ram/cvs-serv19005/Tests/CMakeTests

Modified Files:
	ModuleNoticesTest.cmake.in 
Log Message:
Better CMake.ModulesNotice test regex

This commit updates the copyright notice regex to enforce a more strict
format for contributor copyrights.


Index: ModuleNoticesTest.cmake.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CMakeTests/ModuleNoticesTest.cmake.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** ModuleNoticesTest.cmake.in	1 Oct 2009 18:12:19 -0000	1.1
--- ModuleNoticesTest.cmake.in	1 Oct 2009 18:22:58 -0000	1.2
***************
*** 1,8 ****
  # Regex to match copyright/license notices.
! # We require the Kitware copyright on the first line, but the ".*" can
  # match any additional copyright holder notices.
  set(notice_regex "
  #=============================================================================
! # Copyright (20[0-9][0-9]-)?20[0-9][0-9] Kitware.*
  #
  # Distributed under the OSI-approved BSD License \\(the \"License\"\\);
--- 1,9 ----
  # Regex to match copyright/license notices.
! # We require the Kitware copyright on the first line, but this can
  # match any additional copyright holder notices.
  set(notice_regex "
  #=============================================================================
! # Copyright (20[0-9][0-9]-)?20[0-9][0-9] Kitware[^\n]+(
! # Copyright (20[0-9][0-9]-)?20[0-9][0-9] [^\n]+)*
  #
  # Distributed under the OSI-approved BSD License \\(the \"License\"\\);



More information about the Cmake-commits mailing list