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
Tobias Leibner
dune-common
Commits
598f6212
Commit
598f6212
authored
10 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
[dunecontrol] add new --current-dep option to build the current module + all dependencies
parent
9281f717
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/dunecontrol
+17
-2
17 additions, 2 deletions
bin/dunecontrol
share/bash-completion/completions/dunecontrol
+1
-1
1 addition, 1 deletion
share/bash-completion/completions/dunecontrol
with
18 additions
and
3 deletions
bin/dunecontrol
+
17
−
2
View file @
598f6212
...
...
@@ -803,12 +803,15 @@ usage () {
echo
" --debug enable debug output of this script"
echo
" --use-cmake use CMake instead of autotools for building"
echo
" --no-cmake use autotools instead of CMake for building"
echo
" --module=mod
only
apply the actions on module mod"
echo
" --module=mod apply the actions on module mod"
echo
" and all modules it depends on"
echo
" --only=mod only apply the actions on module mod"
echo
" and not the modules it depends on"
echo
" --current only apply the actions on the current module,"
echo
" the one whose source tree we are standing in"
echo
" i.e. the one whose source tree we are standing in,"
echo
" and not the modules it depends on"
echo
" --current-dep apply the actions on the current module,"
echo
" and all modules it depends on"
echo
" --resume resume a previous run (only consider the modules"
echo
" not built successfully on the previous run)"
echo
" --skipfirst skip the first module (use with --resume)"
...
...
@@ -1007,6 +1010,18 @@ while test $# -gt 0; do
export
SEARCH_MODULES
=
"
$SEARCH_MODULES
$MODULE
"
export
ONLY
=
"
$ONLY
$MODULE
"
;;
--current-dep
)
while
!
test
-f
$CONTROL
;
do
cd
..
if
test
"
$OLDPWD
"
=
"
$PWD
"
;
then
echo
"You are not inside the source tree of a DUNE module."
>
&2
exit
-1
fi
done
;
parse_control
$PWD
/
$CONTROL
fix_and_assign MODULE
"
$module
"
export
SEARCH_MODULES
=
"
$SEARCH_MODULES
$MODULE
"
;;
--resume
)
export
RESUME_FLAG
=
"yes"
;;
...
...
This diff is collapsed.
Click to expand it.
share/bash-completion/completions/dunecontrol
+
1
−
1
View file @
598f6212
...
...
@@ -69,7 +69,7 @@ _dunecontrol_complete ()
# the usual dunecontrol options
COMPREPLY=( $(compgen -W "
-h --help --use-cmake --current --resume --skipfirst
-h --help --use-cmake --current
--current-dep
--resume --skipfirst
--module= --only=
--opts=
--builddir=
...
...
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