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
916d543b
Commit
916d543b
authored
15 years ago
by
Martin Nolte
Browse files
Options
Downloads
Patches
Plain Diff
implemented a resume-feature for dunecontrol
[[Imported from SVN: r5511]]
parent
f8a938d3
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/.gitignore
+4
-1
4 additions, 1 deletion
bin/.gitignore
bin/dunecontrol
+26
-0
26 additions, 0 deletions
bin/dunecontrol
with
30 additions
and
1 deletion
bin/.gitignore
+
4
−
1
View file @
916d543b
...
...
@@ -3,4 +3,7 @@ Makefile.in
.deps
semantic.cache
check-log-store
wmlwrap
\ No newline at end of file
wmlwrap
*.swp
*.resume
This diff is collapsed.
Click to expand it.
bin/dunecontrol
+
26
−
0
View file @
916d543b
...
...
@@ -79,6 +79,7 @@ if test "x$DEBUG" = "xyes"; then
fi
export
COMMAND_DIR
=
"
`
canonicalpath
$0
`
"
export
RESUME_FILE
=
"
$0
.resume"
# Read the modules find part
.
"
$COMMAND_DIR
/dunemodules.inc"
...
...
@@ -99,6 +100,9 @@ build_modules() {
shift
local
runcommand
=
run_
$command
modules
=
"
$@
"
for
module
in
$modules
;
do
echo
$module
done
>
$RESUME_FILE
for
module
in
$modules
;
do
local
path
=
$(
eval
"echo
\$
PATH_
${
module
}
"
)
eval echo
"--- calling
$command
for
\$
NAME_
${
module
}
---"
...
...
@@ -108,6 +112,14 @@ build_modules() {
export
module
eval_control
$runcommand
$path
/
$CONTROL
)
;
then
eval echo
"--- Failed to build
\$
NAME_
${
module
}
---"
;
exit
1
;
fi
modules_togo
=
`
cat
$RESUME_FILE
`
for
module_togo
in
$modules_togo
;
do
if
test
x
$module_togo
!=
x
$module
;
then
echo
$module_togo
fi
done
>
$RESUME_FILE
eval echo
"---
\$
NAME_
${
module
}
done ---"
done
}
...
...
@@ -513,6 +525,20 @@ while test $# -gt 0; do
export
ONLY
=
"
$ONLY
$MODULE
"
export
HAVE_
${
module
}
=
;;
--resume
)
if
test
-s
$RESUME_FILE
;
then
RESUME
=
"
`
cat
$RESUME_FILE
`
"
for
a
in
$RESUME
;
do
export
NAME_
`
fix_variable_name
$a
`
=
"
$a
"
fix_and_assign MODULE
"
$a
"
export
SEARCH_MODULES
=
"
$SEARCH_MODULES
$MODULE
"
export
ONLY
=
"
$ONLY
$MODULE
"
done
else
echo
"Error: No previous run to resume. ('
$RESUME_FILE
' is empty or does not exist)"
exit
1
fi
;;
--debug
)
true
;;
# ignore this option, it is handled right at the beginning
--
*
)
usage
...
...
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