summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-04-01 12:17:09 +0200
committerJim Meyering <meyering@redhat.com>2010-04-01 12:19:53 +0200
commitcb3fb19a4bf5e07cc0813e1fca7ae20e51e90206 (patch)
tree42986215f2800fa05010675edf613b3d41de34f1 /cfg.mk
parentf4d75a8bf63eb2f3b884768e0fefd3f4dd08107b (diff)
downloadgrep-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.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index 5e4a8902..a3927970 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -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