提交 7125975d 编写于 作者: J Jim Meyering

syntax-check: enforce the no-cvs-keywords prohibition

* Makefile.maint (sc_prohibit_cvs_keyword): New rule.
Suggested by Daniel Veillard.
The new test exposed two uses of $Date$.
* docs/Goals: Don't use $Date$.
* python/TODO: Likewise.
上级 30bc0a10
Fri Dec 12 18:50:20 +0100 2008 Jim Meyering <meyering@redhat.com>
syntax-check: enforce the no-cvs-keywords prohibition
* Makefile.maint (sc_prohibit_cvs_keyword): New rule.
Suggested by Daniel Veillard.
The new test exposed two uses of $\Date$.
* docs/Goals: Don't use $\Date$.
* python/TODO: Likewise.
Fri Dec 12 17:08:08 +0100 2008 Jim Meyering <meyering@redhat.com> Fri Dec 12 17:08:08 +0100 2008 Jim Meyering <meyering@redhat.com>
avoid a spurious test failure on non-numa systems avoid a spurious test failure on non-numa systems
...@@ -11,7 +20,7 @@ Fri Dec 12 14:57:17 CET 2008 Daniel Veillard <veillard@redhat.com> ...@@ -11,7 +20,7 @@ Fri Dec 12 14:57:17 CET 2008 Daniel Veillard <veillard@redhat.com>
Fri Dec 12 13:41:31 +0100 2008 Jim Meyering <meyering@redhat.com> Fri Dec 12 13:41:31 +0100 2008 Jim Meyering <meyering@redhat.com>
remove cvs $Id$ strings remove cvs $\Id$ strings
* po/id.po: Likewise. * po/id.po: Likewise.
* qemud/remote_generate_stubs.pl: Likewise. * qemud/remote_generate_stubs.pl: Likewise.
* src/virsh.c: Likewise. * src/virsh.c: Likewise.
......
...@@ -81,6 +81,14 @@ sc_space_tab: ...@@ -81,6 +81,14 @@ sc_space_tab:
{ echo '$(ME): found SPACE-TAB sequence; remove the SPACE' \ { echo '$(ME): found SPACE-TAB sequence; remove the SPACE' \
1>&2; exit 1; } || : 1>&2; exit 1; } || :
cvs_keywords = \
Author|Date|Header|Id|Name|Locker|Log|RCSfile|Revision|Source|State
sc_prohibit_cvs_keyword:
@grep -nE '\$$($(cvs_keywords))\$$' $$($(VC_LIST_EXCEPT)) && \
{ echo '$(ME): do not use CVS keyword expansion ' \
1>&2; exit 1; } || :
# Don't use *scanf or the old ato* functions in `real' code. # Don't use *scanf or the old ato* functions in `real' code.
# They provide no error checking mechanism. # They provide no error checking mechanism.
# Instead, use strto* functions. # Instead, use strto* functions.
......
...@@ -26,4 +26,3 @@ the underlying acual implementation of the hypervisor calls. ...@@ -26,4 +26,3 @@ the underlying acual implementation of the hypervisor calls.
releases of the library. releases of the library.
Daniel Veillard <veillard@redhat.com> Daniel Veillard <veillard@redhat.com>
$Date$
...@@ -4,5 +4,3 @@ ...@@ -4,5 +4,3 @@
- add examples, web page and python based test suite - add examples, web page and python based test suite
Daniel Veillard Daniel Veillard
$Date$
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册