From b8a7334941db6b7ce1474af632a3f79ba4d1ffb1 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 30 Oct 2016 20:32:38 +0100 Subject: [PATCH] Bugfix include.mes: skip commented modules. * scripts/include.mes: Make regexp more strict. --- scripts/include.mes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/include.mes b/scripts/include.mes index 3b17f49c..bed5f5dd 100755 --- a/scripts/include.mes +++ b/scripts/include.mes @@ -18,6 +18,6 @@ if [ -n "$BOOT" ]; then echo $prefix/module/mes/mes-0.mes fi cat $1 \ - | grep -Eo '(mes-use-module \([^()]+ [^()]+))' \ + | grep -Eo '^\(mes-use-module \([^ ()]+ [^()]+))' \ | grep -Eo ' \([^)]+\)' \ | sed -e "s@^ *(@${prefix}/module/@" -e 's@ @/@g' -e 's@)@.mes@'