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
8ef3de05
Commit
8ef3de05
authored
16 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
new option --current
[[Imported from SVN: r5203]]
parent
9ca3f7dd
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
+18
-2
18 additions, 2 deletions
bin/dunecontrol
with
18 additions
and
2 deletions
bin/dunecontrol
+
18
−
2
View file @
8ef3de05
...
...
@@ -353,6 +353,8 @@ usage () {
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 in whichs source tree we are standing"
echo
" --opts=FILE load default options from FILE"
echo
" (see dune-common/doc/example.opts)"
echo
" --[COMMAND]-opts=opts set options for COMMAND"
...
...
@@ -468,7 +470,7 @@ while test $# -gt 0; do
exit
1
;
fi
for
a
in
`
echo
$arg
|
tr
','
' '
`
;
do
export
NAME_
`
fix_variable_name
$a
rg
`
=
"
$a
"
export
NAME_
`
fix_variable_name
$a
`
=
"
$a
"
fix_and_assign MODULE
"
$a
"
export
SEARCH_MODULES
=
"
$SEARCH_MODULES
$MODULE
"
done
...
...
@@ -481,11 +483,25 @@ while test $# -gt 0; do
exit
1
;
fi
for
a
in
`
echo
$arg
|
tr
','
' '
`
;
do
export
NAME_
`
fix_variable_name
$a
rg
`
=
"
$a
"
export
NAME_
`
fix_variable_name
$a
`
=
"
$a
"
fix_and_assign MODULE
"
$a
"
export
SEARCH_MODULES
=
"
$SEARCH_MODULES
$MODULE
"
export
ONLY
=
"
$ONLY
$MODULE
"
done
;;
--current
)
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
"
export
ONLY
=
"
$ONLY
$MODULE
"
export
HAVE_
${
module
}
=
;;
--debug
)
true
;;
--
*
)
...
...
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