mirror_edk2/BaseTools/Scripts
Liming Gao c30084fbac BaseTools Script: Formalize source files to follow DOS format
V3:
support exclude dir and file by name while traversing the directory.
remove close in with statement.

V2:
add version,description,copyright.
add flag -v,-q,--append-extensions,--override-extensions,--debug.
-q will omit default output,-v and --debug are not implemented.
add default file extensions.
support input of file path.
support muliple input path.
simplify comment.
change 'pattern'.encode() to b'pattern',I think this will be better.
change naming of variable and function to keep the same with BinToPcd.py

V1:
FormatDosFiles.py is added to clean up dos source files. It bases on
the rules defined in EDKII C Coding Standards Specification.
5.1.2 Do not use tab characters
5.1.6 Only use CRLF (Carriage Return Line Feed) line endings.
5.1.7 All files must end with CRLF
No trailing white space in one line. (To be added in spec)

The source files in edk2 project with the below postfix are dos format.
.h .c .nasm .nasmb .asm .S .inf .dec .dsc .fdf .uni .asl .aslc .vfr .idf
.txt .bat .py

The package maintainer can use this script to clean up all files in his
package. The prefer way is to create one patch per one package.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Signed-off-by: Dongao Guo <dongao.guo@intel.com>
2018-06-13 13:03:16 +08:00
..
PackageDocumentTools BaseTools: Remove equality operator with None 2018-03-30 08:25:13 +08:00
BinToPcd.py BaseTools/BinToPcd: Add support for multiple binary input files 2018-03-28 08:51:15 -07:00
ConvertMasmToNasm.py BaseTools ConvertMasmToNasm: Don't try to reconvert .nasm files 2016-06-28 13:16:53 -07:00
ConvertUni.py BaseTools/Scripts: Add ConvertUni.py script 2015-12-15 04:50:50 +00:00
FormatDosFiles.py BaseTools Script: Formalize source files to follow DOS format 2018-06-13 13:03:16 +08:00
GccBase.lds BaseTools/Scripts: fix GccBase.lds line endings 2017-05-28 12:07:02 +00:00
MemoryProfileSymbolGen.py BaseTools MemoryProfileSymbolGen.py: Handle 64bits rva from "nm -l xxx.dll" 2016-07-05 17:25:38 +08:00
PatchCheck.py BaseTools/PatchCheck: Support Contribution Agreement 1.1 2017-08-03 11:01:46 -07:00
RunMakefile.py BaseTools/Scripts: Add python script to run a makefile 2017-08-11 11:21:04 -07:00
RunMakefileSample.mak BaseTools/Scripts: Add sample makefile for use with RunMakefile.py 2017-08-11 11:28:35 -07:00
Rvct-Align4K.sct BaseTools RVCT: use scatter file to enforce minimum section alignment 2015-12-14 07:55:46 +00:00
Rvct-Align32.sct BaseTools RVCT: use scatter file to enforce minimum section alignment 2015-12-14 07:55:46 +00:00
SetVisualStudio.bat BaseTools: Update Scripts to support VS2015 env 2015-12-22 01:01:54 +00:00
ShowEnvironment.bat BaseTools: Update Scripts to support VS2015 env 2015-12-22 01:01:54 +00:00
SmiHandlerProfileSymbolGen.py BaseTools: refactor and remove out of date use of .keys() 2018-04-10 10:05:16 +08:00
UpdateBuildVersions.py 1. Update UpdateBuildVersion.py; 2015-02-06 03:40:27 +00:00