Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Koch
dune-common
Commits
790e3764
Commit
790e3764
authored
14 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
Append locations induced by pkg-config to the DUNE_CONTROL_PATH
[[Imported from SVN: r6428]]
parent
6cada6a7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/dunemodules.lib
+25
-5
25 additions, 5 deletions
lib/dunemodules.lib
with
25 additions
and
5 deletions
lib/dunemodules.lib
+
25
−
5
View file @
790e3764
...
...
@@ -142,11 +142,20 @@ parse_control() {
setup_control_path
()
{
if
test
-z
$DUNE_CONTROL_PATH
;
then
DUNE_CONTROL_PATH
=
.
for
i
in
/usr/local/lib/dunecontrol/ /usr/lib/dunecontrol/
;
do
if
test
-d
$i
;
then
DUNE_CONTROL_PATH
=
$DUNE_CONTROL_PATH
:
$i
fi
done
# try pkg-config locations
if
pkg-config dune-common
;
then
# try usual locations of installed modules
for
i
in
/usr/local/lib/dunecontrol/ /usr/lib/dunecontrol/
;
do
if
test
-d
$i
;
then
DUNE_CONTROL_PATH
=
$DUNE_CONTROL_PATH
:
$i
fi
done
for
i
in
`
echo
$PKG_CONFIG_PATH
|
tr
':'
' '
`
;
do
if
test
-d
"
$i
/../dunecontrol"
;
then
DUNE_CONTROL_PATH
=
$DUNE_CONTROL_PATH
:
"
$i
/../dunecontrol"
fi
done
fi
fi
# try to read DUNE_CONTROL_PATH from OPTS file
if
test
-n
"
$DUNE_OPTS_FILE
"
;
then
...
...
@@ -378,6 +387,17 @@ _sort_module() {
echo
" Maybe you need to adjust PKG_CONFIG_PATH!"
>
&2
echo
"
$name
is required by
$modname
"
>
&2
exit
1
else
eval
ver
=
$(
pkg-config
$name
--modversion
)
if
test
"
$SKIPVERSIONCHECK
"
!=
"yes"
&&
!
check_version
"
$ver
"
"
$depver
"
;
then
echo
"ERROR: version mismatch."
>
&2
echo
"
$modname
requires
$name
$depver
,"
>
&2
echo
" but only
$name
=
$ver
is installed."
>
&2
exit
1
fi
# update module list
parse_control
$(
pkg-config
$name
--variable
=
prefix
)
/lib/dunecontrol/
$name
/dune.module
_sort_module
$dep
fi
fi
done
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment