Debian Codegraph @

util/lint/lint-stable-018-symlinks

raw symbols SCIP
1 #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. sh
2 #
3 # SPDX-License-Identifier: GPL-2.0-only
4
5 # DESCR: Report any symbolic links
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 EXCLUDED_DIRS='^3rdparty\|^site-local'
16
17 # Exit if the code isn't in a git repo
18 if [scip-shell system . . `[`. "${IN_GIT_TREE}" -eq 0 ]; then
19 exit 0
20 fi
21
22
23 ${GIT} ls-tree -r HEAD | \
24 grep ^120000 | \
25 cut -f2 | \
26 grep -v "$EXCLUDED_DIRS"