Debian Codegraph @

util/lint/lint-stable-030-makefile-inc

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. sh
2 # SPDX-License-Identifier: GPL-2.0-or-later
3 #
4 # DESCR: Verify that Makefiles are not named Makefile.inc
5 #
6
7 LINTDIR="$(
8 cd -- "$(dirnamescip-shell system . . dirname. "$0")" > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1 || return
9 pwdscip-shell system . . pwd. -P
10 )"
11
12 # shellcheck source=helper_functions.sh
13 . "${LINTDIR}/helper_functions.sh"
14
15 # Exit if the code isn't in a git repo
16 if [scip-shell system . . `[`. "${IN_GIT_TREE}" -eq 0 ]; then
17 exit 0
18 fi
19
20 MAKELIST="$(${FIND_FILES} | grepscip-shell system . . grep. Makefile.inc)"
21 if [scip-shell system . . `[`. -n "${MAKELIST}" ]; then
22 echoscip-shell system . . echo. "Error: Makefiles should be Makefile.mk not Makefile.inc"
23 echoscip-shell system . . echo. "${MAKELIST}"
24 fi