]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools: PatchCheck: Exclude bash scripts from CRLF check
authorPierre Gondois <pierre.gondois@arm.com>
Wed, 1 Jul 2020 14:06:00 +0000 (22:06 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 2 Jul 2020 09:29:38 +0000 (09:29 +0000)
commit01356d2963fcd9ff90166674d054e17d265e0a5f
tree00f9af74bca5f956098ee5c99b91c745d819f6a0
parentc8edb70945099fd35a0997d3f3db105efc144e13
BaseTools: PatchCheck: Exclude bash scripts from CRLF check

Bash scripts require LF line endings to work.
PatchCheck.py checks that the files added in a patch have CRLF
line endings. It excludes files ending with the ".sh" extension
from this check.

Some bash script don't have a ".sh" extension. Most of them are
located in:
 - BaseTools/BinWrappers/PosixLike/
 - BaseTools/Bin/CYGWIN_NT-5.1-i686/

This patch excludes these folder plus BaseTools/BuildEnv from
this CRLF check.

Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
Reviewed-by: Bob Feng <bob.c.feng@intel.com>
BaseTools/Scripts/PatchCheck.py