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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Core Modules
dune-common
Commits
c4fc98b8
Commit
c4fc98b8
authored
13 years ago
by
Martin Nolte
Browse files
Options
Downloads
Patches
Plain Diff
allow printing of recursive dependencies (same as in m4creat), see FS#893
[[Imported from SVN: r6426]]
parent
3f9a77d1
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/dunecontrol
+47
-1
47 additions, 1 deletion
bin/dunecontrol
with
47 additions
and
1 deletion
bin/dunecontrol
+
47
−
1
View file @
c4fc98b8
...
...
@@ -223,9 +223,10 @@ esac'
}
# list of all dunecontrol commands
COMMANDS
=
"update autogen configure make all exec status svn"
COMMANDS
=
"
printdeps
update autogen configure make all exec status svn"
# help string for the commands
printdeps_HELP
=
"print recursive dependencies of a module"
update_HELP
=
"updated all modules from the repository"
autogen_HELP
=
"run the autogen.sh script for each module"
configure_HELP
=
"run configure for each module"
...
...
@@ -676,6 +677,51 @@ case "$command" in
done
echo export
DUNE_CONTROL_PATH
=
$DUNE_CONTROL_PATH
;;
printdeps
)
find_modules_in_path
mainmod
=
`
echo
$SEARCH_MODULES
`
name
=
`
eval echo
\\
${
NAME_$mainmod
}
`
# get dependencies
eval
deps
=
\$
DEPS_
$module
#initially remove leading space
deps
=
`
echo
"
$deps
"
|
sed
's/^ *//'
`
while
test
-n
"
$deps
"
;
do
#the end of the name is marked either by space, opening paren
#or comma
depname
=
"
${
deps
%%[ (,]*
}
"
#remove the name and adjacent whitespace
deps
=
`
echo
"
$deps
"
|
sed
's/^[^ (,]* *//'
`
#check whether there is a dependency version
case
"
$deps
"
in
'('
*
)
deps
=
"
${
deps
#(
}
"
depver
=
"
${
deps
%%)*
}
"
deps
=
"
${
deps
#*)
}
"
;;
*
)
depver
=
;;
esac
#remove any leading whitespace or commas for te next iteration
deps
=
`
echo
"
$deps
"
|
sed
's/^[, ]*//'
`
requires
=
"
$requires
$depname
$depver
"
done
echo
"dependencies for
$name
"
### DEPENDENCIES
if
test
"x
$SEARCH_MODULES
"
!=
"x"
;
then
MODULES
=
$SEARCH_MODULES
fi
sort_dependencies
$MODULES
for
mod
in
$MODULES
;
do
echo
"
$mod
(required)"
done
###
sort_suggestions
$mainmod
for
mod
in
$MODULES
;
do
echo
"
$mod
(suggested)"
done
;;
m4create
)
find_modules_in_path
mainmod
=
`
echo
$SEARCH_MODULES
`
...
...
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