maint: make copyright statements more consistent

Avoid growing lists of copyright year numbers by collapsing consecutive
years like "1996, 1997-2015, 2016" into a single range like "1996-2016".
This change may take effect the next time 'make update-copyright' is run.

* cfg.mk (update-copyright-env): Add with UPDATE_COPYRIGHT_USE_INTERVALS=1
as described above.  Also add UPDATE_COPYRIGHT_FORCE=1 to rejoin some
split lines if necessary.
This commit is contained in:
Bernhard Voelker 2016-01-06 12:45:29 +01:00
parent 939f78506a
commit 7b1afb1caa

4
cfg.mk
View File

@ -56,6 +56,10 @@ exclude_file_name_regexp--sc_texinfo_acronym = doc/perm\.texi
# cases where neither argument is a string literal.
local-checks-to-skip += sc_prohibit_strcmp
# During 'make update-copyright', collapse consecutive years into intervals.
update-copyright-env = \
UPDATE_COPYRIGHT_FORCE=1 \
UPDATE_COPYRIGHT_USE_INTERVALS=1
# NEWS hash. We use this to detect unintended edits to bits of the NEWS file
# other than the most recent section. If you do need to retrospectively update