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
52374941
Commit
52374941
authored
3 years ago
by
Basile Desloges
Browse files
Options
Downloads
Patches
Plain Diff
[eacsl] Remove sh -e option from e-acsl-gcc.sh
parent
cb17bb52
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
src/plugins/e-acsl/scripts/e-acsl-gcc.sh
+6
-1
6 additions, 1 deletion
src/plugins/e-acsl/scripts/e-acsl-gcc.sh
with
6 additions
and
1 deletion
src/plugins/e-acsl/scripts/e-acsl-gcc.sh
+
6
−
1
View file @
52374941
#!/bin/sh
-e
#!/bin/sh
##########################################################################
##########################################################################
# #
# #
# This file is part of the Frama-C's E-ACSL plug-in. #
# This file is part of the Frama-C's E-ACSL plug-in. #
...
@@ -23,11 +23,16 @@
...
@@ -23,11 +23,16 @@
# Convenience wrapper for small runs of E-ACSL Frama-C plugin
# Convenience wrapper for small runs of E-ACSL Frama-C plugin
# The -e option is not present in the sha-bang on purpose, the error() function
# should be used after each command that may fail.
# Base dir of this script
# Base dir of this script
BASEDIR
=
"
$(
realpath
`
dirname
$0
`
)
"
BASEDIR
=
"
$(
realpath
`
dirname
$0
`
)
"
# Print a message to STDERR and exit. If the second argument (exit code)
# Print a message to STDERR and exit. If the second argument (exit code)
# is provided and it is '0' then do nothing.
# is provided and it is '0' then do nothing.
# /!\ Use this function after each command that may fail with the second
# argument set to $?
error
()
{
error
()
{
if
[
-z
"
$2
"
]
||
!
[
"
$2
"
=
0
]
;
then
if
[
-z
"
$2
"
]
||
!
[
"
$2
"
=
0
]
;
then
echo
"e-acsl-gcc: fatal error:
$1
"
1>&2
echo
"e-acsl-gcc: fatal error:
$1
"
1>&2
...
...
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