diff options
Diffstat (limited to 'build-aux')
-rwxr-xr-x | build-aux/lint-bin | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build-aux/lint-bin b/build-aux/lint-bin index 2fe8e4b..85f9015 100755 --- a/build-aux/lint-bin +++ b/build-aux/lint-bin @@ -5,6 +5,7 @@ # SPDX-License-Identifier: AGPL-3.0-or-later set -euE -o pipefail +shopt -s extglob # Output is a series of lines in the format "symbol location size # source". Whitespace may seem silly. @@ -38,10 +39,10 @@ lint_globals() { # resolve `..` components source="$(realpath --canonicalize-missing --no-symlinks -- "$source")" ;; - CMakeFiles/*.dir/*.obj) + CMakeFiles/*.dir/*.@(obj|o)) # CMakeFiles/sbc_harnes_objs.dir/... source="${source#CMakeFiles/*.dir/}" - source="${source%.obj}" + source="${source%.@(obj|o)}" source="${source//__/..}" source="$(realpath --canonicalize-missing --no-symlinks --relative-to="$topdir" -- "$source")" ;; |