Skip to content
Snippets Groups Projects
Commit 2c1ef361 authored by Christian Engwer's avatar Christian Engwer
Browse files

allow path/dune.module entries in DUNE_CONTROL_PATH

[[Imported from SVN: r4675]]
parent a253dab6
No related branches found
No related tags found
No related merge requests found
......@@ -86,8 +86,15 @@ find_modules() {
$(find "$dir" -name $CONTROL )
EOF
else
echo "ERROR: could not find directory $1"
false
if test -f "$1" &&
test "$(basename $1)" = "$CONTROL"; then
export module=""
parse_control "$1"
export MODULES="$MODULES $module"
else
echo "ERROR: '$1' is neither a directory nor a $CONTROL file"
false
fi
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment