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
9f5c8295
Commit
9f5c8295
authored
18 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
merge installed and source module lists
[[Imported from SVN: r4744]]
parent
a6e93f93
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/duneproject
+14
-6
14 additions, 6 deletions
bin/duneproject
with
14 additions
and
6 deletions
bin/duneproject
+
14
−
6
View file @
9f5c8295
...
...
@@ -43,19 +43,27 @@ while [ "$DATACORRECT" != "y" -a "$DATACORRECT" != "Y" ]; do
.
$(
canonicalpath
$0
)
/dunemodules.inc
if
[
"
$MODULES
"
=
""
]
;
then
find_modules
.
find_modules
_in_path
fi
#
Replace _ with -
C
MODULES
=
""
#
get the real module names
SRC_
MODULES
=
""
for
i
in
$MODULES
;
do
mod
=
$(
e
cho
"
$i
"
|
sed
-e
's/_/-/g'
)
C
MODULES
=
"
$
C
MODULES
$mod
"
mod
=
$(
e
val echo
\$
NAME_
$i
)
SRC_
MODULES
=
"
$
SRC_
MODULES
$mod
"
done
# get installed modules
PKG_MODULES
=
"
`
pkg-config
--list-all
|
grep
dune |
cut
-d
' '
-f1
`
"
# merge lists
ALL_MODULES
=
"
`
echo
$SRC_MODULES
$PKG_MODULES
|
tr
' '
'\n'
|
sort
|
uniq
`
"
DEPENDENCIES
=
""
echo
"Which modules should this module depend on? Following modules are found:"
for
i
in
$ALL_MODULES
;
do
echo
"
$i
"
;
done
while
[
-z
"
$DEPENDENCIES
"
]
;
do
read
-p
"
Modules this module depends on (separated by spaces). Available modules are
$CMODULES
: "
DEPENDENCIES
read
-p
"
Enter space separated list
: "
DEPENDENCIES
done
VERSION
=
""
...
...
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