Collin Funk <collin.fu...@gmail.com> writes: > Hi Bruno, > > Bruno Haible <br...@clisp.org> writes: > >> Can this be rewritten in a simpler way, that does not use idioms >> from perl's bag of tricks? Something like >> >> my $copyright_year = <some_expression>; >> >> like one would do it in every other programming language? > > Not sure. I'm not the most knowledgeable perl programmer. Maybe > something like this is more clear? > > my $copyright_year = (split ("-", $VERSION))[0]; > > or perhaps someone else has a better idea.
That's better, but doesn't all this just hides the problem that 'make update-copyright' doesn't bump the copyright for these two files? I think the policy is to bump copyright year to 2025 as soon as possible after 2025-01-01 even if there are no other changes (which would bump $VERSION) since we publish the file via git. If we use your patch here, that wouldn't happen until some change is made that bumps $VERSION, which seems wrong. I think this patch should be reverted, and gnulib's 'make update-copyright' should be teached to update this file too. What do you think? Do you want to propose a patch to it? /Simon
signature.asc
Description: PGP signature