From 2cb6a0e887aeceee84940cc6f870fe1ee5e439bf Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 30 Apr 2012 15:55:13 -0600 Subject: [PATCH] maint: avoid false positives on unmarked diagnostics Otherwise, a string such as _("Don't use \"" VAR "\".") would complain about unmarked diagnostics. * cfg.mk (sc_libvirt_unmarked_diagnostics): Handle \" in message. (cherry picked from commit 8f3728f85366d99568134053c959ba32ffb0e662) --- cfg.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfg.mk b/cfg.mk index 71e9a1d901..b517e7ccb2 100644 --- a/cfg.mk +++ b/cfg.mk @@ -592,7 +592,7 @@ sc_libvirt_unmarked_diagnostics: $(_sc_search_regexp) @{ grep -nE '\<$(func_re) *\(.*;$$' $$($(VC_LIST_EXCEPT)); \ grep -A1 -nE '\<$(func_re) *\(.*,$$' $$($(VC_LIST_EXCEPT)); } \ - | sed 's/_("[^"][^"]*"//;s/[ ]"%s"//' \ + | sed 's/_("\([^\"]\|\\.\)\+"//;s/[ ]"%s"//' \ | grep '[ ]"' && \ { echo '$(ME): found unmarked diagnostic(s)' 1>&2; \ exit 1; } || :