Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
pub
frama-c
Commits
40a2d309
Commit
40a2d309
authored
3 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[analysis-scripts] build: fix output message and convert dots from target names
parent
e3ae6faf
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
share/analysis-scripts/build.py
+3
-3
3 additions, 3 deletions
share/analysis-scripts/build.py
with
3 additions
and
3 deletions
share/analysis-scripts/build.py
+
3
−
3
View file @
40a2d309
...
@@ -157,10 +157,10 @@ def replace_line(lines, line_pattern, value, all_occurrences=False):
...
@@ -157,10 +157,10 @@ def replace_line(lines, line_pattern, value, all_occurrences=False):
else
:
else
:
sys
.
exit
(
f
"
error: no lines found matching pattern:
{
line_pattern
}
"
)
sys
.
exit
(
f
"
error: no lines found matching pattern:
{
line_pattern
}
"
)
# replaces '/' with '_' so that a valid target name is created
# replaces '/'
and '.'
with '_' so that a valid target name is created
def
make_target_name
(
target
):
def
make_target_name
(
target
):
pp
=
blug_jbdb
.
prettify
(
target
)
pp
=
blug_jbdb
.
prettify
(
target
)
return
pp
.
replace
(
'
/
'
,
'
_
'
)
return
pp
.
replace
(
'
/
'
,
'
_
'
)
.
replace
(
'
.
'
,
'
_
'
)
# sources are pretty-printed relatively to the .frama-c directory, where the
# sources are pretty-printed relatively to the .frama-c directory, where the
# GNUmakefile will reside
# GNUmakefile will reside
...
@@ -233,7 +233,7 @@ elif os.path.isfile(jbdb_path):
...
@@ -233,7 +233,7 @@ elif os.path.isfile(jbdb_path):
for
f
in
jbdb
:
for
f
in
jbdb
:
jbdb_targets
+=
[
t
for
t
in
f
[
"
targets
"
]
if
blug_jbdb
.
filter_target
(
t
)]
jbdb_targets
+=
[
t
for
t
in
f
[
"
targets
"
]
if
blug_jbdb
.
filter_target
(
t
)]
if
not
jbdb_targets
:
if
not
jbdb_targets
:
sys
.
exit
(
f
"
no targets found in JBDB (
{
jbdb
}
)
"
)
sys
.
exit
(
f
"
no targets found in JBDB (
{
jbdb
_path
}
)
"
)
if
not
targets
:
if
not
targets
:
# no targets specified in command line; use all from JBDB
# no targets specified in command line; use all from JBDB
targets
=
jbdb_targets
targets
=
jbdb_targets
...
...
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