From: Ondřej Surý Date: Thu, 23 Apr 2020 05:57:29 +0000 (+0200) Subject: Make merge_copyrights ignore hidden files X-Git-Tag: v9.17.2~127^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d46082d82408845dcbb185f702d57d04d3ccf3c;p=thirdparty%2Fbind9.git Make merge_copyrights ignore hidden files --- diff --git a/util/copyrights b/util/copyrights index bcd70b5cfdc..0f8982b09e2 100644 --- a/util/copyrights +++ b/util/copyrights @@ -1,6 +1,3 @@ -./.gitlab-ci.yml X 2018,2019,2020 -./.pylintrc X 2020 -./.uncrustify.cfg X 2018,2019,2020 ./AUTHORS X 2020 ./CHANGES X 2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020 ./COPYING X 2020 @@ -399,7 +396,6 @@ ./bin/tests/system/dnssec/ns2/sign.sh SH 2000,2001,2002,2003,2004,2006,2007,2008,2009,2010,2011,2012,2014,2015,2016,2017,2018,2019,2020 ./bin/tests/system/dnssec/ns3/sign.sh SH 2000,2001,2002,2004,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020 ./bin/tests/system/dnssec/ns3/unsupported-algorithm.key X 2018,2019,2020 -./bin/tests/system/dnssec/ns5/.gitignore X 2015,2018,2019 ./bin/tests/system/dnssec/ns5/sign.sh SH 2015,2016,2017,2018,2019,2020 ./bin/tests/system/dnssec/ns6/named.args X 2013,2014,2016,2018,2019,2020 ./bin/tests/system/dnssec/ns6/sign.sh SH 2013,2014,2016,2017,2018,2019,2020 diff --git a/util/merge_copyrights b/util/merge_copyrights index 9f5b09447e3..3e4f24bea91 100644 --- a/util/merge_copyrights +++ b/util/merge_copyrights @@ -30,13 +30,8 @@ $year += 1900; open(CHANGES, "git ls-files | sed 's;^;./;' | sort |") || die "git ls-files: $!"; while () { chomp; - - next if (m%/\.\# | # CVS old conflict file - /CVS/ | # CVS directory - /\.git/ | # git directory - /\.gitignore | # .gitignore files - /\.gitattributes | # .gitattributes files - /\.clang-format | # .clang-format files + + next if (m%/\. | # just ignore all hidden files /ChangeLog | # Makefile.(am|in) | # build system doesn't need to have copyright /m4/ | # build system doesn't need to have copyright @@ -59,7 +54,6 @@ while () { /cocci/.* | # coccinelle spatch files \.conf$ | # configuration files \.conf\.in$ | # configuration files - \.dir-locals\.el | # emacs local variables /(dnssafe|openssl)/.*\.[ch]$ | # imported doc/(draft|expired|rfc)/ | # imported \.txt$ # text files don't really need copyright