summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-08-08 08:54:52 +0200
committerJim Meyering <meyering@redhat.com>2011-08-08 10:11:48 +0200
commit0b27edfe1dd5f18c0a6661ae877502956d95f6db (patch)
treedd8df308f1b3407b5ed788ab1bd6e31900126466 /cfg.mk
parent554caaf6ffc721fe83debe0eb5e555136b01f0bb (diff)
downloadcoreutils-0b27edfe1dd5f18c0a6661ae877502956d95f6db.tar.xz
maint: prevent accidental future use of the old shell function name
This is especially important for an error-handling shell function like this that is actually called only rarely. * cfg.mk (sc_prohibit_framework_failure): New rule, to prevent use of the old name.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index 2111956de..5f8a6809a 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -270,6 +270,12 @@ sc_prohibit_verbose_version:
halt='use the print_ver_ function instead...' \
$(_sc_search_regexp)
+# Use framework_failure_, not the old name without the trailing underscore.
+sc_prohibit_framework_failure:
+ @prohibit='\<framework_''failure\>' \
+ halt='use framework_failure_ instead' \
+ $(_sc_search_regexp)
+
###########################################################
_p0 = \([^"'/]\|"\([^\"]\|[\].\)*"\|'\([^\']\|[\].\)*'
_pre = $(_p0)\|[/][^"'/*]\|[/]"\([^\"]\|[\].\)*"\|[/]'\([^\']\|[\].\)*'\)*