From: Aina Niemetz Date: Mon, 25 Mar 2019 19:31:59 +0000 (-0700) Subject: update-copyright: Fix matching of excluded paths. X-Git-Tag: cvc5-1.0.0~4214 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a3dccac861e05e91d139a8c6da3b1605a068ff00;p=cvc5.git update-copyright: Fix matching of excluded paths. --- 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.