From a3dccac861e05e91d139a8c6da3b1605a068ff00 Mon Sep 17 00:00:00 2001 From: Aina Niemetz Date: Mon, 25 Mar 2019 12:31:59 -0700 Subject: [PATCH] update-copyright: Fix matching of excluded paths. --- contrib/update-copyright.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/update-copyright.pl b/contrib/update-copyright.pl index 26db51e25..3412905af 100755 --- a/contrib/update-copyright.pl +++ b/contrib/update-copyright.pl @@ -35,14 +35,15 @@ my $excluded_directories = '^(CVS|generated)$'; my $excluded_paths = '^('; +# note: first excluded path regexp must not start with a '|' # different license -$excluded_paths .= '|src/util/channel.h'; +$excluded_paths .= 'src/util/channel.h'; # minisat license $excluded_paths .= '|src/prop/(bv)?minisat/core/.*'; $excluded_paths .= '|src/prop/(bv)?minisat/mtl/.*'; $excluded_paths .= '|src/prop/(bv)?minisat/simp/.*'; $excluded_paths .= '|src/prop/(bv)?minisat/utils/.*'; -$excluded_paths .= '$)'; +$excluded_paths .= ')$'; # Years of copyright for the template. E.g., the string # "1985, 1987, 1992, 1997, 2008" or "2006-2009" or whatever. -- 2.30.2