mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
Enable 'make syntax-check's sc_changelog rule.
* Makefile.maint (sc_changelog): Adapt to work with legacy ChangeLog entry header lines. * Makefile.cfg (local-checks-to-skip): Remove sc_changelog.
This commit is contained in:
parent
b11f2be30e
commit
95a7adf3e6
@ -1,3 +1,10 @@
|
||||
2008-04-21 Jim Meyering <meyering@redhat.com>
|
||||
|
||||
Enable 'make syntax-check's sc_changelog rule.
|
||||
* Makefile.maint (sc_changelog): Adapt to work with legacy
|
||||
ChangeLog entry header lines.
|
||||
* Makefile.cfg (local-checks-to-skip): Remove sc_changelog.
|
||||
|
||||
Fri Apr 18 14:30:12 EST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
Work around Python.h name-space pollution.
|
||||
|
@ -32,7 +32,6 @@ local-checks-to-skip = \
|
||||
sc_GPL_version \
|
||||
sc_always_defined_macros \
|
||||
sc_cast_of_alloca_return_value \
|
||||
sc_changelog \
|
||||
sc_dd_max_sym_length \
|
||||
sc_error_exit_success \
|
||||
sc_file_system \
|
||||
|
@ -166,8 +166,12 @@ sc_obsolete_symbols:
|
||||
# FIXME: warn about definitions of EXIT_FAILURE, EXIT_SUCCESS, STREQ
|
||||
|
||||
# Each nonempty line must start with a year number, or a TAB.
|
||||
# Or day-of-week+space.
|
||||
changelog_entry_header_regexp = \
|
||||
([12][0-9][0-9][0-9]| .|(Mon|Tue|Wed|Thu|Fri|Sat|Sun) )
|
||||
sc_changelog:
|
||||
@grep -n '^[^12 ]' $$(find . -maxdepth 2 -name ChangeLog) && \
|
||||
@grep -Evn '(^$$|^$(changelog_entry_header_regexp))' \
|
||||
$$(find . -maxdepth 2 -name ChangeLog) && \
|
||||
{ echo '$(ME): found unexpected prefix in a ChangeLog' 1>&2; \
|
||||
exit 1; } || :
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user