Debian Codegraph @

src/plugins/e-acsl/tab-in-changelog.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`.
2 ##########################################################################
3 # #
4 # This file is part of the Frama-C's E-ACSL plug-in. #
5 # #
6 # Copyright (C) 2012-2021 #
7 # CEA (Commissariat à l'énergie atomique et aux énergies #
8 # alternatives) #
9 # #
10 # you can redistribute it and/or modify it under the terms of the GNU #
11 # Lesser General Public License as published by the Free Software #
12 # Foundation, version 2.1. #
13 # #
14 # It is distributed in the hope that it will be useful, #
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
17 # GNU Lesser General Public License for more details. #
18 # #
19 # See the GNU Lesser General Public License version 2.1 #
20 # for more details (enclosed in the file licenses/LGPLv2.1). #
21 # #
22 ##########################################################################
23
24 # Base dir of this script
25 BASEDIR="$(realpathscip-shell system . . realpath. `dirnamescip-shell system . . dirname. $0`)"
26
27 # Check that the E-ACSL changelog does not contain <TAB>
28 # Note: do not use -P, which is not macOS-compatible
29 tab_lines_count=$(grepscip-shell system . . grep. -c -e "$(printfscip-shell system . . printf. '\t')" $BASEDIR/doc/Changelog)
30 if [scip-shell system . . `[`. "$tab_lines_count" -ne "0" ]; then
31 echoscip-shell system . . echo. "Found <TAB> in E-ACSL changelog"
32 exit 1
33 fi
34
35 exit 0