Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cdo
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor 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
mpim-sw
cdo
Commits
cfbb747c
Commit
cfbb747c
authored
8 years ago
by
Ralf Mueller
Browse files
Options
Downloads
Patches
Plain Diff
cleanup builtin help
parent
879e671d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Rakefile
+13
-6
13 additions, 6 deletions
Rakefile
with
13 additions
and
6 deletions
Rakefile
+
13
−
6
View file @
cfbb747c
...
...
@@ -147,7 +147,7 @@ def builder2task(builder,useHostAsName=false,syncSource=true)
toDo
=
lambda
{
|
what
|
"
#{
baseTaskName
}
_
#{
what
}
"
.
to_sym
}
if
syncSource
then
@_help
[
:sync
]
=
"sync
files for host:
#{
builder
.
host
}
, branch:
#{
getBranchName
}
"
unless
@_help
.
has_key?
(
:sync
)
@_help
[
:sync
]
=
"sync
source files
"
unless
@_help
.
has_key?
(
:sync
)
task
toDo
[
:sync
]
do
|
t
|
dbg
(
"sync source code for branch:"
+
getBranchName
)
doSync
(
builder
)
...
...
@@ -155,32 +155,39 @@ def builder2task(builder,useHostAsName=false,syncSource=true)
end
@_help
[
:conf
]
=
\
"configure on host:
%s, compiler %s, branch: %s"
%
[
builder
.
host
,
builder
.
compiler
,
getBranchName
]
unless
@_help
.
has_key?
(
:conf
)
"
run
configure on host:
./config/default with user settings activated"
unless
@_help
.
has_key?
(
:conf
)
task
toDo
[
:conf
]
do
|
t
|
dbg
(
"call
#{
builder
.
configureCall
}
"
)
execute
(
"
#{
builder
.
configureCall
}
"
,
builder
)
end
@_help
[
:make
]
=
\
"
build on host: %s, compiler %s, branch: %s"
%
[
builder
.
host
,
builder
.
compiler
,
getBranchName
]
unless
@_help
.
has_key?
(
:make
)
"
run 'make'"
unless
@_help
.
has_key?
(
:make
)
task
toDo
[
:make
].
to_sym
do
|
t
|
execute
(
"make -j4"
,
builder
)
end
@_help
[
:check
]
=
\
"
check on host: %s, compiler %s, branch: %s"
%
[
builder
.
host
,
builder
.
compiler
,
getBranchName
]
unless
@_help
.
has_key?
(
:check
)
"
run 'make check'"
unless
@_help
.
has_key?
(
:check
)
task
toDo
[
:check
]
do
|
t
|
execute
(
"make check"
,
builder
)
end
@_help
[
:checkSerial
]
=
\
"check with serialized IO (-L option)"
unless
@_help
.
has_key?
(
:checkSerial
)
task
toDo
[
:checkSerial
]
do
|
t
|
execute
(
"make check CDO='
#{
builder
.
targetDir
}
/src/cdo -L'"
,
builder
)
end
@_help
[
:clean
]
=
\
"
build on host: %s, compiler %s, branch: %s"
%
[
builder
.
host
,
builder
.
compiler
,
getBranchName
]
unless
@_help
.
has_key?
(
:clean
)
"
run 'make clean'"
unless
@_help
.
has_key?
(
:clean
)
task
toDo
[
:clean
]
do
|
t
|
execute
(
"make clean"
,
builder
)
end
@_help
[
:checkV
]
=
\
"
check on host: %s, compiler %s, branch: %s"
%
[
builder
.
host
,
builder
.
compiler
,
getBranchName
]
unless
@_help
.
has_key?
(
:checkV
)
"
run './src/cdo -V' "
unless
@_help
.
has_key?
(
:checkV
)
task
toDo
[
:checkV
]
do
|
t
|
execute
(
"./src/cdo -V"
,
builder
)
end
...
...
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