On Fri, Apr 26, 2019 at 07:17:15PM +0000, Holger Levsen wrote:
> however, this change breaks the 'make update-copyright' target:

[..] 

> which surprises me a bit, because looking at lines 77 and 88 of
> documentation/scripts/get_copyright there should be support for
> this way of writing. (I'm just too tired right now to grok perl.)

I guess this change could fix it:

diff --git a/documentation/scripts/get_copyright 
b/documentation/scripts/get_copyright
index 966945dd..72fa5211 100755
--- a/documentation/scripts/get_copyright
+++ b/documentation/scripts/get_copyright
@@ -74,7 +74,7 @@ open(FILE, "< $file") or die "Can't open $file perhaps not in 
the correct dir? E
 while(<FILE>){
        my $short = $cdir;
        $short =~ s/-manual//;
-       if ($_ =~ m/This document is written and copyrighted by (.*?) and is 
released under the GPL(\d+) or any later version\./){
+       if ($_ =~ m/This document is written and copyrighted by (.*?) and is 
released under the GPL v(\d+) or any later version\./){
            if ($type eq 'dbk') {
                $buffer = "<!-- START en -->\n";
                $buffer .= copyright($1);

Please check.

Wolfgang

Attachment: signature.asc
Description: PGP signature

Reply via email to