Skip to content
Snippets Groups Projects
Commit 52374941 authored by Basile Desloges's avatar Basile Desloges
Browse files

[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
#!/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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment