diff options
author | Jim Meyering <meyering@redhat.com> | 2010-04-01 12:17:09 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-04-01 12:19:53 +0200 |
commit | cb3fb19a4bf5e07cc0813e1fca7ae20e51e90206 (patch) | |
tree | 42986215f2800fa05010675edf613b3d41de34f1 /cfg.mk | |
parent | f4d75a8bf63eb2f3b884768e0fefd3f4dd08107b (diff) | |
download | grep-cb3fb19a4bf5e07cc0813e1fca7ae20e51e90206.tar.gz |
tests: remove all unportable uses of echo
* src/main.c: Use printf rather than echo -ne in a comment.
* tests/fedora: Use printf (not echo) also in ok/fail functions.
* cfg.mk (sc_prohibit_echo_minus_en): New rule, to prohibit
any future introduction.
Diffstat (limited to 'cfg.mk')
-rw-r--r-- | cfg.mk | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -42,6 +42,11 @@ sc_prohibit_jm_in_m4: { echo '$(ME): do not use jm_ in m4 macro names' \ 1>&2; exit 1; } || : +sc_prohibit_echo_minus_en: + @re='\<echo -[en]' \ + msg='do not use echo ''-e or echo ''-n; use printf instead' \ + $(_prohibit_regexp) + update-copyright-env = \ UPDATE_COPYRIGHT_USE_INTERVALS=1 \ UPDATE_COPYRIGHT_MAX_LINE_LENGTH=79 |