diff options
author | Jonah Graham | 2018-11-22 23:46:49 +0000 |
---|---|---|
committer | Jonah Graham | 2018-11-23 07:52:26 +0000 |
commit | ff75ae80fa44dfc925064f7ca0169ac80997bc77 (patch) | |
tree | 7db3666d26eeae703d9bc650d5d4540bc71406fb /build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal | |
parent | be35c7327d2a6168718afea45181a058a7d414fa (diff) | |
download | org.eclipse.cdt-ff75ae80fa44dfc925064f7ca0169ac80997bc77.tar.gz org.eclipse.cdt-ff75ae80fa44dfc925064f7ca0169ac80997bc77.tar.xz org.eclipse.cdt-ff75ae80fa44dfc925064f7ca0169ac80997bc77.zip |
Bug 540373: Cleanup: Remove trailing whitespace in properties files
Command used:
# Remove space at eol in comments
find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^(#.*)[ \t]+$/\1/' {} +
# Remove space at eol in blank lines
find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^[ \t]+$//' {} +
# Replace escaped spaces at eol with unicode
find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\ $/\1\\u0020/' {} +
# Replace unescaped spaces at eol with unicode
find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\]) $/\1\\u0020/' {} +
# Replace escaped tabs at eol with unicode
find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\\t$/\1\\u0009/' {} +
# Replace unescaped tabs at eol with unicode
find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\t$/\1\\u0009/' {} +
# Stage all changes
git add -A .
# trim any remaining whitespace and then identify and fixup
# manually
# Only dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/MessagesForDebugVM.properties
# needed this due to missing newline at end of the file
find . ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/[ \t]+$//' {} +
Change-Id: I858f16891fe001f4f7e62d5a4f904146e891cd39
Diffstat (limited to 'build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal')
2 files changed, 12 insertions, 12 deletions
diff --git a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/MakeMessages.properties b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/MakeMessages.properties index a973bbae8db..0c63ad49826 100644 --- a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/MakeMessages.properties +++ b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/MakeMessages.properties @@ -20,7 +20,7 @@ MakeBuilder.Invoking_Make_Builder=Invoking Make Builder... MakeBuilder.message.error.build = Internal error building project {0} MakeBuilder.message.undefined.build.command = Build command is null for project {0} -BuildInfoFactory.Missing_Builder=Missing Builder: +BuildInfoFactory.Missing_Builder=Missing Builder:\u0020 MakeTargetManager.add_to_workspace_root=Cannot add make targets to workspace root MakeTargetManager.add_temporary_target=Cannot add temporary Target to manager. @@ -30,28 +30,28 @@ MakeTargetManager.error_writing_file=Error writing target file ProjectTargets.error_reading_project_targets=Error reading project targets. -ScannerConfigBuilder.Invoking_Builder=Invoking scanner config builder on project +ScannerConfigBuilder.Invoking_Builder=Invoking scanner config builder on project\u0020 ScannerConfigBuilder.0=building per-configuratin info ScannerConfigNature.Missing_Project=Missing or closed project -ScannerConfigInfoFactory.Missing_Builder=Missing Builder: +ScannerConfigInfoFactory.Missing_Builder=Missing Builder:\u0020 ExternalScannerInfoProvider.Console_Name=CDT Built-in Specs Console, {0} -ExternalScannerInfoProvider.Reading_Specs=Reading specs ... +ExternalScannerInfoProvider.Reading_Specs=Reading specs ...\u0020 ExternalScannerInfoProvider.Greeting=Scanner Discovery of compiler built-in settings for project {0} -ScannerInfoCollector.Processing=Processing discovered scanner configuration ... -ScannerInfoCollector.Updating=Updating Scanner Configuration for project +ScannerInfoCollector.Processing=Processing discovered scanner configuration ...\u0020 +ScannerInfoCollector.Updating=Updating Scanner Configuration for project\u0020 -DiscoveredPathManager.File_Error_Message=Error accessing scanner config file for project -DiscoveredPathManager.Info_Not_Serializable=Error persisting discovered scanner config +DiscoveredPathManager.File_Error_Message=Error accessing scanner config file for project\u0020 +DiscoveredPathManager.Info_Not_Serializable=Error persisting discovered scanner config\u0020 GCCScannerConfigUtil.Error_Message=Error creating specs file -ConsoleParser.Filename_Missing_Error_Message=CDT Path Discovery is unable to determine source file name in build command: -ConsoleParser.Ambiguous_Filepath_Error_Message=CDT Path Discovery is unable to resolve ambiguous file path: +ConsoleParser.Filename_Missing_Error_Message=CDT Path Discovery is unable to determine source file name in build command:\u0020 +ConsoleParser.Ambiguous_Filepath_Error_Message=CDT Path Discovery is unable to resolve ambiguous file path:\u0020 ConsoleParser.Working_Directory_Error_Message=CDT Path Discovery is unable to determine working directory of the build command -ConsoleParser.Nonexistent_Include_Path_Error_Message=CDT Path Discovery has discovered and will ignore a non-existent include path: +ConsoleParser.Nonexistent_Include_Path_Error_Message=CDT Path Discovery has discovered and will ignore a non-existent include path:\u0020 DiscoveredContainer.description=Discovered Paths DiscoveredContainer.ScopeErrorMessage=Invalid scanner configuration discovery profile scope diff --git a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/makefile/MakeFileResources.properties b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/makefile/MakeFileResources.properties index 5d4e3857e6b..a923078261e 100644 --- a/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/makefile/MakeFileResources.properties +++ b/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/makefile/MakeFileResources.properties @@ -17,7 +17,7 @@ MakefileValidator.errorResource=Error resource MakefileValidator.warningInfo=Warning info MakefileValidator.warning=Warning MakefileValidator.unknown=unknown -MakefileValidator.checkingFile=Checking file : +MakefileValidator.checkingFile=Checking file :\u0020 MakefileValidator.fileChecked=File checked MakefileValidator.error.elseMissingIfCondition=else missing if condition MakefileValidator.error.endifMissingIfElseCondition=Endif missing if/else condition |