Tests: Update ModuleNotices test for new notice

This commit is contained in:
Brad King 2016-09-27 14:12:58 -04:00
parent 845d86bce3
commit 756169ac99
1 changed files with 5 additions and 18 deletions

View File

@ -1,21 +1,8 @@
# Regex to match copyright/license notices. # Regex to match license notices at the top of module files.
# We require the Kitware copyright on the first line, but this can set(notice_regex [[^# Distributed under the OSI-approved BSD 3-Clause License\. See accompanying
# match any additional copyright holder notices. # file Copyright\.txt or https://cmake\.org/licensing for details\.
set(notice_regex "
#============================================================================= ]])
# Copyright (20[0-9][0-9]-)?20[0-9][0-9] [^\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\\.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE\\.
# See the License for more information\\.
#=============================================================================
# \\(To distribute this file outside of CMake, substitute the full
# License text for the above reference.\\)
")
string(REPLACE "\n" "\r?\n" notice_regex "${notice_regex}") string(REPLACE "\n" "\r?\n" notice_regex "${notice_regex}")
string(REPLACE "\r\r" "\r" notice_regex "${notice_regex}") string(REPLACE "\r\r" "\r" notice_regex "${notice_regex}")