]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
maint: avoid false positives on unmarked diagnostics
authorEric Blake <eblake@redhat.com>
Mon, 30 Apr 2012 21:55:13 +0000 (15:55 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 1 May 2012 14:56:32 +0000 (08:56 -0600)
Otherwise, a string such as _("Don't use \"" VAR "\".") would
complain about unmarked diagnostics.

* cfg.mk (sc_libvirt_unmarked_diagnostics): Handle \" in message.

cfg.mk

diff --git a/cfg.mk b/cfg.mk
index fb4df2fa6f5e1510f96df8fb028fa725ceb7b181..9dab3c35e2dcdc3192cf7fadaa3906b3f1fcdd9f 100644 (file)
--- a/cfg.mk
+++ b/cfg.mk
@@ -603,7 +603,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; } || :