Bugfix include.mes: skip commented modules.

* scripts/include.mes: Make regexp more strict.
This commit is contained in:
Jan Nieuwenhuizen 2016-10-30 20:32:38 +01:00
parent d18542e25f
commit b8a7334941

View file

@ -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@'