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
22f8df57
Commit
22f8df57
authored
18 years ago
by
Christian Engwer
Browse files
Options
Downloads
Patches
Plain Diff
* don't use ACLOCAL_FLAGS
* exit if an error occures [[Imported from SVN: r4536]]
parent
c9782194
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/dunecontrol
+14
-20
14 additions, 20 deletions
bin/dunecontrol
with
14 additions
and
20 deletions
bin/dunecontrol
+
14
−
20
View file @
22f8df57
...
...
@@ -40,11 +40,11 @@ parse_control() {
export
SUGS_
${
module
}
=
"
$sugs
"
else
echo
"ERROR:
$CONTROL
files
$1
contains an invalid Module entry"
exit
1
exit
1
fi
else
echo
"ERROR:
$CONTROL
files
$1
does not contain a Module entry"
exit
1
exit
1
fi
else
echo
"ERROR: could not read file
$1
"
...
...
@@ -73,11 +73,11 @@ EOF
_sort_module
()
{
local
module
=
$1
shift
1
check_modname
$module
||
(
echo
"ERROR: invalid module name
$
1
"
;
exit
1
)
if
!
check_modname
$module
;
then
echo
"ERROR: invalid module name
$
module
"
;
exit
1
;
fi
if
test
"x
$(
eval echo
\$
SORT_DONE_
${
command
}
_
${
module
}
)
"
!=
"xyes"
;
then
# resolve dependencies
for
dep
in
$(
eval
"echo
\$
DEPS_
$module
"
)
;
do
check_modname
$dep
||
(
echo
"ERROR: invalid module name
$
1
"
;
exit
1
)
if
!
check_modname
$dep
;
then
echo
"ERROR: invalid module name
$
dep
"
;
exit
1
;
fi
if
test
"x
$(
eval echo
\$
HAVE_
$dep
)
"
!=
"x"
;
then
_sort_module
$dep
else
...
...
@@ -87,7 +87,7 @@ _sort_module() {
done
# resolve suggestions
for
dep
in
$(
eval
"echo
\$
SUGS_
$module
"
)
;
do
check_modname
$dep
||
(
echo
"ERROR: invalid module name
$
1
"
;
exit
1
)
if
!
check_modname
$dep
;
then
echo
"ERROR: invalid module name
$
dep
"
;
exit
1
;
fi
if
test
"x
$(
eval echo
\$
HAVE_
$dep
)
"
!=
"x"
;
then
_sort_module
$dep
fi
...
...
@@ -139,20 +139,13 @@ build_modules() {
local
runcommand
=
run_
$command
for
module
in
$MODULES
;
do
local
path
=
$(
eval
"echo
\$
PATH_
${
module
}
"
)
echo
"--- calling
$command
for
$module
---"
(
echo
"--- calling
$command
for
$module
---"
if
!
(
set
-e
cd
"
$path
"
eval_control
$runcommand
$path
/
$CONTROL
)
||
(
echo
"--- Failed to build
$module
---"
;
exit
1
)
echo
"---
$module
done ---"
done
return
local command
=
$1
shift
load_opts
$command
for
m
in
$MODULES
;
do
_build_module
$runcommand
$m
)
;
then
echo
"--- Failed to build
$module
---"
;
exit
1
;
fi
echo
"---
$module
done ---"
done
}
...
...
@@ -189,14 +182,15 @@ run_default_update () { echo "WARNING: Doing nothing"; }
run_default_autogen
()
{
PARAMS
=
"
$CMD_PARAMS
"
local
M4_PATH
=
""
if
test
-x
autogen.sh
;
then
for
m
in
$MODULES
;
do
path
=
$(
eval
"echo
\$
PATH_
$m
"
)
if
test
-d
$path
/m4
;
then
ACLOCAL_FLAGS
=
"
$path
$ACLOCAL_FLAGS
"
M4_PATH
=
"
$path
$M4_PATH
"
fi
done
eval
./autogen.sh
"
$
ACLOCAL_FLAGS
"
"
$PARAMS
"
||
exit
1
eval
./autogen.sh
"
$
M4_PATH
"
"
$PARAMS
"
||
exit
1
fi
}
...
...
@@ -367,7 +361,7 @@ done
case
"
$command
"
in
update
|
autogen
|
configure
|
make
|
all
|
exec
|
nothing
)
find_modules
.
if
test
"x
$MODULE
"
=
"x"
;
then
if
test
"x
$MODULE
"
=
"x"
;
then
sort_modules
$MODULES
else
sort_modules
$MODULE
...
...
@@ -378,7 +372,7 @@ case "$command" in
;;
print
)
find_modules
.
if
test
"x
$MODULE
"
=
"x"
;
then
if
test
"x
$MODULE
"
=
"x"
;
then
sort_modules
$MODULES
else
sort_modules
$MODULE
...
...
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