]> code.ossystems Code Review - openembedded-core.git/commit
verify-bashisms: support warnings with more than one line of source code
authorPatrick Ohly <patrick.ohly@intel.com>
Tue, 31 Jan 2017 12:50:33 +0000 (13:50 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 31 Jan 2017 15:28:35 +0000 (15:28 +0000)
commite2dd3621c45e854b4eb054b4d4537487462cdd39
tree3bb4d53ff2482229da6de2a93ae320d6f5e5a786
parentb690b8dc634844b4f6672d524f0e6f1d86dc4e20
verify-bashisms: support warnings with more than one line of source code

All warnings start with "possible bashism in", followed by one or more
(in the case of line continuation) lines of source code. To support
more than one line, we now split by matching against the known intro
text.

Example:

 $ verify-bashisms guile
 ...
 /.../openembedded-core/meta/recipes-devtools/guile/guile_2.0.13.bb
  possible bashism in guile_cross_config line 94 ($'...' should be "$(printf '...')"):
          echo '#!'`which ${BUILD_SYS}-guile`$' \\\n--no-auto-compile -e main -s\n!#\n(define %guile-build-info '\'\( \
  > ${B}/guile-config.cross

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/verify-bashisms