Bugfix include.mes: skip commented modules.
[mes.git] / scripts / include.mes
index 3b17f49c2e58207dd0a72b779f071400c916db1a..bed5f5dd87a4ba69354b905755def8c2e125a6dc 100755 (executable)
@@ -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@'