summaryrefslogtreecommitdiffstats
path: root/Tests/CMakeTests/ModuleNoticesTest.cmake.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-10-01 18:22:58 (GMT)
committerBrad King <brad.king@kitware.com>2009-10-01 18:22:58 (GMT)
commit62edb7b94328aa050dc4ea9a4e91075989a571d4 (patch)
tree2587965c6e061e3269f931e0770c6d1d2208794f /Tests/CMakeTests/ModuleNoticesTest.cmake.in
parent26efeadd227977a393d2af6d36e6e1a3515aee05 (diff)
downloadCMake-62edb7b94328aa050dc4ea9a4e91075989a571d4.zip
CMake-62edb7b94328aa050dc4ea9a4e91075989a571d4.tar.gz
CMake-62edb7b94328aa050dc4ea9a4e91075989a571d4.tar.bz2
Better CMake.ModulesNotice test regex
This commit updates the copyright notice regex to enforce a more strict format for contributor copyrights.
Diffstat (limited to 'Tests/CMakeTests/ModuleNoticesTest.cmake.in')
-rw-r--r--Tests/CMakeTests/ModuleNoticesTest.cmake.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/Tests/CMakeTests/ModuleNoticesTest.cmake.in b/Tests/CMakeTests/ModuleNoticesTest.cmake.in
index 3e4d104..4d295ef 100644
--- a/Tests/CMakeTests/ModuleNoticesTest.cmake.in
+++ b/Tests/CMakeTests/ModuleNoticesTest.cmake.in
@@ -1,9 +1,10 @@
# Regex to match copyright/license notices.
-# We require the Kitware copyright on the first line, but the ".*" can
+# 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.*
+# 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\"\\);
# see accompanying file Copyright\\.txt for details\\.