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
6e5fe5fc
Commit
6e5fe5fc
authored
16 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
flags are either read from environment or from file
[[Imported from SVN: r5313]]
parent
17bbd349
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
+4
-4
4 additions, 4 deletions
bin/dunecontrol
with
4 additions
and
4 deletions
bin/dunecontrol
+
4
−
4
View file @
6e5fe5fc
...
...
@@ -123,13 +123,13 @@ load_opts() {
local command
=
$1
local
COMMAND
=
$(
echo
$command
|
tr
'[:lower:]'
'[:upper:]'
)
CMD_FLAGS
=
"
$(
eval echo
\$
${
COMMAND
}
_FLAGS
)
"
local
CMD_FLAGS_FILE
=
""
local
CMD_FLAGS_
FROM_
FILE
=
""
if
test
"x
$DUNE_OPTS_FILE
"
!=
"x"
;
then
CMD_FLAGS_FILE
=
"
$(
eval
${
COMMAND
}
_FLAGS
=
""
;
.
$DUNE_OPTS_FILE
;
eval echo
\$
${
COMMAND
}
_FLAGS
)
"
CMD_FLAGS_
FROM_
FILE
=
"
$(
eval
${
COMMAND
}
_FLAGS
=
""
;
.
$DUNE_OPTS_FILE
;
eval echo
\$
${
COMMAND
}
_FLAGS
)
"
fi
if
test
-n
"
$CMD_FLAGS_FILE
"
;
then
if
test
-n
"
$CMD_FLAGS_
FROM_
FILE
"
;
then
echo
"----- using default flags
\$
${
COMMAND
}
_FLAGS from
$DUNE_OPTS_FILE
-----"
CMD_FLAGS
=
"
$CMD_FLAGS
$(
eval
${
COMMAND
}
_FLAGS
=
""
;
.
$DUNE_OPTS_FILE
;
eval echo
\$
${
COMMAND
}
_FLAGS
)
"
CMD_FLAGS
=
$CMD_FLAGS
_FROM_FILE
elif
test
-n
"
$CMD_FLAGS
"
;
then
echo
"----- using default flags
\$
${
COMMAND
}
_FLAGS from environment -----"
fi
...
...
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