1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 06:45:43 +02:00
cdt/build/org.eclipse.cdt.autotools.core
Jonah Graham ff75ae80fa 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
2018-11-23 07:52:26 +00:00
..
.settings Bug 540373: Standard .settings auto applied 2018-11-22 21:47:02 +00:00
html Bug 368069 - RFE: Contribute Autotools plug-ins to the CDT 2012-03-12 00:39:05 -04:00
META-INF Bug 540699 - NoClassDefFoundError in AutotoolsNewMakeGenerator 2018-11-02 10:46:29 -04:00
src/org/eclipse/cdt Bug 540373: Cleanup: Remove trailing whitespace in properties files 2018-11-23 07:52:26 +00:00
.classpath autotools: Bump o.e.cdt.autotools.core BREE to 1.8. 2015-10-20 10:16:40 +03:00
.gitignore Fix for bug 432086 2014-04-16 18:08:25 -04:00
.project Bug 368069 - RFE: Contribute Autotools plug-ins to the CDT 2012-03-12 00:39:05 -04:00
about.html Bug 540371: Update to EPLv2 using releng/scripts/change_to_eplv2.sh 2018-11-22 20:31:51 +00:00
build.properties Bug 368069 - RFE: Contribute Autotools plug-ins to the CDT 2012-03-12 00:39:05 -04:00
plugin.properties Bug 540371: Update to EPLv2 using releng/scripts/change_to_eplv2.sh 2018-11-22 20:31:51 +00:00
plugin.xml Add a Debug configuration for Autotools projects 2016-05-16 12:02:50 -04:00