blob: d1b8ed3c90532f5098ee2bcf546c9db6850140ba [file] [log] [blame]
Martin Roth01b5dd62021-02-17 10:52:55 -07001#!/usr/bin/env sh
2#
3# SPDX-License-Identifier: GPL-2.0-only
4
5# DESCR: Verify that files don't contain windows line endings
6
Martin Rothd81debd2022-06-03 00:06:57 -06007LINTDIR="$(
8 cd -- "$(dirname "$0")" > /dev/null 2>&1 || return
9 pwd -P
10)"
Martin Roth01b5dd62021-02-17 10:52:55 -070011
Martin Rothd81debd2022-06-03 00:06:57 -060012# shellcheck source=helper_functions.sh
13. "${LINTDIR}/helper_functions.sh"
Martin Roth01b5dd62021-02-17 10:52:55 -070014
Martin Rothd81debd2022-06-03 00:06:57 -060015EXCLUDE='^3rdparty/\|^payloads/external\|^.git\|build\|util/crossgcc/xgcc'
Martin Roth01b5dd62021-02-17 10:52:55 -070016
Martin Rothd81debd2022-06-03 00:06:57 -060017${GREP_FILES} -IlP "\r$" | grep -v "$EXCLUDE"