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
fb6b1aae
Commit
fb6b1aae
authored
17 years ago
by
Markus Blatt
Browse files
Options
Downloads
Patches
Plain Diff
Merged duneproject bugfix from release.
[[Imported from SVN: r5001]]
parent
fca68638
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/duneproject
+29
-11
29 additions, 11 deletions
bin/duneproject
dune-common.pc.in
+3
-2
3 additions, 2 deletions
dune-common.pc.in
with
32 additions
and
13 deletions
bin/duneproject
+
29
−
11
View file @
fb6b1aae
...
...
@@ -37,6 +37,19 @@ canonicalpath(){
(
cd
$(
dirname
$(
canonicalname
$1
))
&&
pwd
)
}
pkg_config_dependencies
(){
if
test
$#
-ne
1
;
then
echo
Usage: pkg_config_dependencies name
>
/dev/stderr
return
1
fi
name
=
"
$1
"
depends
=
"
`
pkg-config
--variable
=
DEPENDENCIES
$name
|
sed
-e
's/,/ /g'
`
"
for
pkg
in
$depends
;
do
depends
=
"
$depends
`
pkg_config_dependencies
$pkg
`
"
done
echo
$depends
}
modulesexist
(){
allfound
=
0
...
...
@@ -119,15 +132,6 @@ if [ "$MODULES" = "" ]; then
find_modules_in_path
fi
if
[
"
$MODULES
"
=
""
]
;
then
echo
"ERROR"
>
/dev/stderr
echo
"No dune modules were found!"
>
/dev/stderr
echo
"Did you forget to specify the places where "
>
/dev/stderr
echo
"you installed your modules in the "
>
/dev/stderr
echo
"DUNE_CONTROL_PATH environment variable?"
>
/dev/stderr
exit
1
;
fi
# get the real module names
SRC_MODULES
=
""
for
i
in
$MODULES
;
do
...
...
@@ -141,6 +145,18 @@ PKG_MODULES="`pkg-config --list-all | grep dune | cut -d' ' -f1`"
# merge lists
ALL_MODULES
=
"
`
echo
$SRC_MODULES
$PKG_MODULES
|
tr
' '
'\n'
|
sort
|
uniq
`
"
if
[
"
$ALL_MODULES
"
=
""
]
;
then
echo
"ERROR"
>
/dev/stderr
echo
"No dune modules were found!"
>
/dev/stderr
echo
"Did you forget to specify the places where "
>
/dev/stderr
echo
"you installed your modules in the "
>
/dev/stderr
echo
"DUNE_CONTROL_PATH environment variable"
>
/dev/stderr
echo
"and adjusted the PKG_CONFIG_PATH environment"
>
/dev/stderr
echo
"accordingly?"
>
/dev/stderr
exit
1
;
fi
################## READ OPTIONS ##################
while
[
"
$DATACORRECT
"
!=
"y"
-a
"
$DATACORRECT
"
!=
"Y"
]
;
do
...
...
@@ -225,6 +241,7 @@ C_DELIM
## Create the parameters passed to DUNE_CHECK_ALL
# save module list of dunemodules.inc
set
-x
save_MODULES
=
$MODULES
for
name
in
$DEPENDENCIES
;
do
mod
=
"
`
fix_variable_name
$name
`
"
...
...
@@ -237,13 +254,14 @@ for name in $DEPENDENCIES; do
MODULES
=
$save_MODULES
else
# found via pkg-config
M_DEPS
=
"
`
pkg-config
--variable
=
Requires
$name
`
"
M_DEPS
=
"
`
pkg_config_dependencies
$name
`
$name
"
#M_DEPS="`pkg-config --variable=Requires $name`"
fi
for
dep
in
$M_DEPS
;
do
CHECK
=
"
$CHECK
[
$dep
]"
done
done
set
+x
make_unique
"
$CHECK
"
# insert , between modules
...
...
This diff is collapsed.
Click to expand it.
dune-common.pc.in
+
3
−
2
View file @
fb6b1aae
...
...
@@ -4,11 +4,12 @@ libdir=@libdir@
includedir=@includedir@
CXX=@CXX@
CC=@CC@
DEPENDENCIES=@REQUIRES@
Name: @PACKAGE_NAME@
Version: @VERSION@
Description: Dune (Distributed and Unified Numerics Environment) common module
URL: http://dune-project.org/
Requires:
@REQUIR
ES
@
Libs:
Requires:
${DEPENDENCI
ES
}
Libs:
-L${libdir} -ldunecommon
Cflags: -I${includedir}
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