2021-02-17 18:52:55 +01:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
|
|
|
|
# DESCR: Verify that files don't contain windows line endings
|
|
|
|
|
2022-06-03 08:06:57 +02:00
|
|
|
LINTDIR="$(
|
|
|
|
cd -- "$(dirname "$0")" > /dev/null 2>&1 || return
|
|
|
|
pwd -P
|
|
|
|
)"
|
2021-02-17 18:52:55 +01:00
|
|
|
|
2022-06-03 08:06:57 +02:00
|
|
|
# shellcheck source=helper_functions.sh
|
|
|
|
. "${LINTDIR}/helper_functions.sh"
|
2021-02-17 18:52:55 +01:00
|
|
|
|
2022-06-03 08:06:57 +02:00
|
|
|
EXCLUDE='^3rdparty/\|^payloads/external\|^.git\|build\|util/crossgcc/xgcc'
|
2021-02-17 18:52:55 +01:00
|
|
|
|
2022-06-03 08:06:57 +02:00
|
|
|
${GREP_FILES} -IlP "\r$" | grep -v "$EXCLUDE"
|