diff options
author | Brad King <brad.king@kitware.com> | 2016-09-27 19:03:22 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-09-27 19:18:07 (GMT) |
commit | 845d86bce391b0028ecda8747c365cb8b57824a0 (patch) | |
tree | 2c98c1b68d56f8ddc975c41a01a9b28f4e2b137f /Utilities | |
parent | 86578eccf2e82286248796bad1032cd0e3a5e1e2 (diff) | |
download | CMake-845d86bce391b0028ecda8747c365cb8b57824a0.zip CMake-845d86bce391b0028ecda8747c365cb8b57824a0.tar.gz CMake-845d86bce391b0028ecda8747c365cb8b57824a0.tar.bz2 |
Utilities/Scripts: Remove temporary script that filtered license notices
Diffstat (limited to 'Utilities')
-rwxr-xr-x | Utilities/Scripts/filter-notices.bash | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/Utilities/Scripts/filter-notices.bash b/Utilities/Scripts/filter-notices.bash deleted file mode 100755 index d4ac823..0000000 --- a/Utilities/Scripts/filter-notices.bash +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env bash - -# Filter scripts. - -regex='#=====================* -(# CMake - Cross Platform Makefile Generator -)?(# Copyright.* -)*# -# 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.\))? -+' -files="$(git ls-files -- | egrep -v ' ' | xargs pcregrep -M -l "$regex")" - - -if test "x$files" != "x"; then - sed -i '1 i# Distributed under the OSI-approved BSD 3-Clause License. See accompanying\ -# file Copyright.txt or https://cmake.org/licensing for details.\ - -' $files - - perl -i -0pe "s/$regex//" -- $files -fi - -# Filter C and C++ sources. - -regex='\/\*=======================*( - .*)+ - - 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. -=======================*\*\/ -+' - -notice='\/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying - file Copyright.txt or https:\/\/cmake.org\/licensing for details. *\/ -' - -git ls-files -z -- | grep -z -v 'Source/kwsys' | xargs -0 perl -i -0pe "s/$regex/$notice/g" |