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
db3e1e46
Commit
db3e1e46
authored
17 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
cleanup of dunecontrol
[[Imported from SVN: r5040]]
parent
47c5289d
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
+16
-21
16 additions, 21 deletions
bin/dunecontrol
with
16 additions
and
21 deletions
bin/dunecontrol
+
16
−
21
View file @
db3e1e46
...
...
@@ -308,6 +308,19 @@ usage () {
)
>
/dev/stderr
}
# create the module list
create_module_list
()
{
find_modules_in_path
if
test
"x
$MODULE
"
=
"x"
;
then
sort_modules
$MODULES
else
sort_modules
$SEARCH_MODULES
fi
if
test
"x
$ONLY
"
!=
x
;
then
export
MODULES
=
"
$ONLY
"
fi
}
if
test
"x
$1
"
=
"x"
;
then
usage
exit
1
...
...
@@ -421,24 +434,14 @@ done
# We need to run this via eval in order construct the case for the commands
case
"
$command
"
in
print
)
find_modules_in_path
if
test
"x
$SEARCH_MODULES
"
=
"x"
;
then
sort_modules
$MODULES
else
sort_modules
$SEARCH_MODULES
fi
create_module_list
for
mod
in
$MODULES
;
do
echo
-n
"
$(
eval echo
\$
NAME_
$mod
)
"
done
echo
;;
export
)
find_modules_in_path
if
test
"x
$MODULE
"
=
"x"
;
then
sort_modules
$MODULES
else
sort_modules
$MODULE
fi
create_module_list
if
test
x.
=
x
$DUNE_CONTROL_PATH
;
then
DUNE_CONTROL_PATH
=
""
fi
...
...
@@ -456,15 +459,7 @@ case "$command" in
;;
*
)
if
is_command
$command
;
then
find_modules_in_path
if
test
"x
$MODULE
"
=
"x"
;
then
sort_modules
$MODULES
else
sort_modules
$MODULE
fi
if
test
"x
$ONLY
"
!=
x
;
then
MODULES
=
"
$ONLY
"
fi
create_module_list
for
mod
in
$MODULES
;
do
NAMES
=
"
$NAMES
$(
eval echo
\$
NAME_
$mod
)
"
done
...
...
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