mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
maint: enforce correct copyright usage
To ensure we don't regress and cause the need for further cleanups, add a 'make syntax-check' rule that ensures new files have proper copyright contents. * cfg.mk (sc_copyright_address): Rename... (sc_copyright_usage): ...and enhance. Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
043af8aca4
commit
0e55024e7b
17
cfg.mk
17
cfg.mk
@ -682,11 +682,22 @@ sc_copyright_format:
|
|||||||
$(_sc_search_regexp)
|
$(_sc_search_regexp)
|
||||||
|
|
||||||
# Prefer the new URL listing over the old street address listing when
|
# Prefer the new URL listing over the old street address listing when
|
||||||
# calling out where to get a copy of the [L]GPL.
|
# calling out where to get a copy of the [L]GPL. Also, while we have
|
||||||
sc_copyright_address:
|
# to ship COPYING (GPL) alongside COPYING.LESSER (LGPL), we want any
|
||||||
|
# source file that calls out a top-level file to call out the LGPL
|
||||||
|
# version. Note that our typical copyright boilerplate refers to the
|
||||||
|
# license by name, not by reference to a top-level file.
|
||||||
|
sc_copyright_usage:
|
||||||
@prohibit=Boston,' MA' \
|
@prohibit=Boston,' MA' \
|
||||||
halt='Point to <http://www.gnu.org/licenses/>, not an address' \
|
halt='Point to <http://www.gnu.org/licenses/>, not an address' \
|
||||||
$(_sc_search_regexp)
|
$(_sc_search_regexp)
|
||||||
|
@require='COPYING\.LESSER' \
|
||||||
|
containing='COPYING' \
|
||||||
|
halt='Refer to COPYING.LESSER for LGPL' \
|
||||||
|
$(_sc_search_regexp)
|
||||||
|
@prohibit='COPYING\.LIB' \
|
||||||
|
halt='Refer to COPYING.LESSER for LGPL' \
|
||||||
|
$(_sc_search_regexp)
|
||||||
|
|
||||||
# Some functions/macros produce messages intended solely for developers
|
# Some functions/macros produce messages intended solely for developers
|
||||||
# and maintainers. Do not mark them for translation.
|
# and maintainers. Do not mark them for translation.
|
||||||
@ -853,7 +864,7 @@ exclude_file_name_regexp--sc_avoid_write = \
|
|||||||
|
|
||||||
exclude_file_name_regexp--sc_bindtextdomain = ^(tests|examples)/
|
exclude_file_name_regexp--sc_bindtextdomain = ^(tests|examples)/
|
||||||
|
|
||||||
exclude_file_name_regexp--sc_copyright_address = \
|
exclude_file_name_regexp--sc_copyright_usage = \
|
||||||
^COPYING(|\.LESSER)$$
|
^COPYING(|\.LESSER)$$
|
||||||
|
|
||||||
exclude_file_name_regexp--sc_flags_usage = ^(docs/|src/util/virnetdevtap\.c$$|tests/vircgroupmock\.c$$)
|
exclude_file_name_regexp--sc_flags_usage = ^(docs/|src/util/virnetdevtap\.c$$|tests/vircgroupmock\.c$$)
|
||||||
|
Loading…
Reference in New Issue
Block a user