#\r
# Copyright (c) 2015 - 2020, Intel Corporation. All rights reserved.<BR>\r
# Copyright (C) 2020, Red Hat, Inc.<BR>\r
+# Copyright (c) 2020, ARM Ltd. All rights reserved.<BR>\r
#\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
self.is_newfile = False\r
self.force_crlf = True\r
self.force_notabs = True\r
- if self.filename.endswith('.sh'):\r
+ if self.filename.endswith('.sh') or \\r
+ self.filename.startswith('BaseTools/BinWrappers/PosixLike/') or \\r
+ self.filename.startswith('BaseTools/Bin/CYGWIN_NT-5.1-i686/') or \\r
+ self.filename == 'BaseTools/BuildEnv':\r
#\r
# Do not enforce CR/LF line endings for linux shell scripts.\r
+ # Some linux shell scripts don't end with the ".sh" extension,\r
+ # they are identified by their path.\r
#\r
self.force_crlf = False\r
if self.filename == '.gitmodules':\r