[gnutls-devel] GnuTLS | New make target 'update-copyright-year' (!1241)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri May 1 07:59:38 CEST 2020




Tim Rühsen commented on a discussion on cfg.mk: https://gitlab.com/gnutls/gnutls/-/merge_requests/1241#note_334838330

>  	echo "If everything looks well, commit the gnulib update with:"
>  	echo "  git commit -m "Update gnulib submodule" gnulib"
>  
> +# Update Copyright year in tools and docs
> +
> +update-copyright-year:
> +	$(AM_V_at)$(SED) -i "s/\"2000-....\"/\"2000-`date +%Y`\"/g" src/args-std.def.in
> +	$(AM_V_at)$(SED) -i "s/ 2001-.... / 2001-`date +%Y` /g" doc/gnutls.texi

Updated with your very first suggestion. If we make the rule too tight, it might even break on reformatting. If we make too wide, we change stuff that wasnt meant to be changed.

So I think that now is a good compromise. And the whole thing is a highly manual process, so whoever updates the year will `git diff` before committing/pushing and likely catch (an unlikely) mistake.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1241#note_334838330
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20200501/20e9a26b/attachment-0001.html>


More information about the Gnutls-devel mailing list