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
03bd1f8f
Commit
03bd1f8f
authored
18 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
fixed bug #225 and improved error messages
[[Imported from SVN: r4820]]
parent
421b5b42
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
+2
-0
2 additions, 0 deletions
bin/dunecontrol
bin/dunemodules.inc
+5
-5
5 additions, 5 deletions
bin/dunemodules.inc
with
7 additions
and
5 deletions
bin/dunecontrol
+
2
−
0
View file @
03bd1f8f
...
@@ -297,6 +297,7 @@ while test $# -gt 0; do
...
@@ -297,6 +297,7 @@ while test $# -gt 0; do
echo
>
/dev/stderr
echo
>
/dev/stderr
exit
1
;
exit
1
;
fi
fi
export
NAME_
`
fix_variable_name
$arg
`
=
"
$arg
"
fix_and_assign MODULE
"
$arg
"
fix_and_assign MODULE
"
$arg
"
;;
;;
--only
=
*
)
--only
=
*
)
...
@@ -306,6 +307,7 @@ while test $# -gt 0; do
...
@@ -306,6 +307,7 @@ while test $# -gt 0; do
echo
>
/dev/stderr
echo
>
/dev/stderr
exit
1
;
exit
1
;
fi
fi
export
NAME_
`
fix_variable_name
$arg
`
=
"
$arg
"
fix_and_assign ONLY
"
$arg
"
fix_and_assign ONLY
"
$arg
"
fix_and_assign MODULE
"
$arg
"
fix_and_assign MODULE
"
$arg
"
;;
;;
...
...
This diff is collapsed.
Click to expand it.
bin/dunemodules.inc
+
5
−
5
View file @
03bd1f8f
...
@@ -118,7 +118,7 @@ sort_modules() {
...
@@ -118,7 +118,7 @@ sort_modules() {
if
test
"x$(eval echo
\$
HAVE_
$m
)"
!=
"x"
;
then
if
test
"x$(eval echo
\$
HAVE_
$m
)"
!=
"x"
;
then
_sort_module
$m
_sort_module
$m
else
else
echo
"ERROR: could not find module
$
dep
"
>
/
dev
/
stderr
echo
"ERROR: could not find module $
(eval echo
\$
NAME_
$m
)
"
>
/
dev
/
stderr
exit
1
exit
1
fi
fi
done
done
...
@@ -144,7 +144,7 @@ _sort_module() {
...
@@ -144,7 +144,7 @@ _sort_module() {
for
name
in
$
(
eval
"echo
\$
DEPS_
$module
"
);
do
for
name
in
$
(
eval
"echo
\$
DEPS_
$module
"
);
do
dep
=
$
(
fix_variable_name
$name
)
dep
=
$
(
fix_variable_name
$name
)
if
!
check_modname
$dep
;
then
if
!
check_modname
$dep
;
then
echo
"ERROR: invalid module name
$
dep
"
>
/
dev
/
stderr
echo
"ERROR: invalid module name
$
name
"
>
/
dev
/
stderr
exit
1
exit
1
fi
fi
if
test
"x$(eval echo
\$
HAVE_
$dep
)"
!=
"x"
;
then
if
test
"x$(eval echo
\$
HAVE_
$dep
)"
!=
"x"
;
then
...
@@ -153,7 +153,7 @@ _sort_module() {
...
@@ -153,7 +153,7 @@ _sort_module() {
# perhaps this module is installed,
# perhaps this module is installed,
# then it should be handled via pkg-config
# then it should be handled via pkg-config
if
!
pkg
-
config
$name
;
then
if
!
pkg
-
config
$name
;
then
echo
"ERROR: could not find module
$dep
"
>
/
dev
/
stderr
echo
"ERROR: could not find module
$(eval echo
\$
NAME_
$dep
)
"
>
/
dev
/
stderr
echo
" module is also unknown to pkg-config"
>
/
dev
/
stderr
echo
" module is also unknown to pkg-config"
>
/
dev
/
stderr
exit
1
exit
1
fi
fi
...
@@ -163,7 +163,7 @@ _sort_module() {
...
@@ -163,7 +163,7 @@ _sort_module() {
for
name
in
$
(
eval
"echo
\$
SUGS_
$module
"
);
do
for
name
in
$
(
eval
"echo
\$
SUGS_
$module
"
);
do
dep
=
$
(
fix_variable_name
$name
)
dep
=
$
(
fix_variable_name
$name
)
if
!
check_modname
$dep
;
then
if
!
check_modname
$dep
;
then
echo
"ERROR: invalid module name
$
dep
"
>
/
dev
/
stderr
echo
"ERROR: invalid module name
$
name
"
>
/
dev
/
stderr
exit
1
exit
1
fi
fi
if
test
"x$(eval echo
\$
HAVE_
$dep
)"
!=
"x"
;
then
if
test
"x$(eval echo
\$
HAVE_
$dep
)"
!=
"x"
;
then
...
@@ -213,7 +213,7 @@ eval_control() {
...
@@ -213,7 +213,7 @@ eval_control() {
# $2 value
# $2 value
#
#
fix_variable_name() {
fix_variable_name() {
echo
"$@"
|
tr
'
-
'
'_'
echo
-
n
"$@"
|
tr
'
[:punct:]
'
'_
_
'
}
}
fix_and_assign
()
{
fix_and_assign
()
{
...
...
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