Skip to content
Snippets Groups Projects
Commit 16514c2a authored by Martin Nolte's avatar Martin Nolte
Browse files

allow for commenting out lines in dune.module

(Keywords will only be accepted at the beginning of the line followed by
whitespace)

[[Imported from SVN: r5189]]
parent f7f3c596
Branches
Tags
No related merge requests found
......@@ -89,10 +89,10 @@ parse_control() {
export module_inst=""
export module=$(fix_variable_name $name)
# read dune.module file
local deps="$(echo $($GREP Depends: "$1" | cut -d ':' -f2))"
local sugs="$(echo $($GREP Suggests: "$1" | cut -d ':' -f2))"
local vers="$(echo $($GREP Version: "$1" | cut -d ':' -f2))"
local main="$(echo $($GREP Maintainer: "$1" | cut -d ':' -f2))"
local deps="$(echo $($GREP ^[[:space:]]*Depends: "$1" | cut -d ':' -f2))"
local sugs="$(echo $($GREP ^[[:space:]]*Suggests: "$1" | cut -d ':' -f2))"
local vers="$(echo $($GREP ^[[:space:]]*Version: "$1" | cut -d ':' -f2))"
local main="$(echo $($GREP ^[[:space:]]*Maintainer: "$1" | cut -d ':' -f2))"
# guess the path of the dune module:
# - installed module: ${path}/lib/dunecontrol/${name}/dune.module
# and there is a file ${path}/lib/pkgconfig/${name}.pc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment