Add Makefile target which strips all trailing whitespace.
This commit is contained in:
parent
2c066c8df0
commit
83c9288e13
5
Makefile
5
Makefile
|
|
@ -130,3 +130,8 @@ tags:
|
||||||
TAGS:
|
TAGS:
|
||||||
${RM} TAGS
|
${RM} TAGS
|
||||||
find . ${MODULES} ${PROGRAMS} -name "*.[ch]" -maxdepth 1 | xargs etags -o TAGS
|
find . ${MODULES} ${PROGRAMS} -name "*.[ch]" -maxdepth 1 | xargs etags -o TAGS
|
||||||
|
|
||||||
|
fix-trailing-whitespace:
|
||||||
|
find -name "*.[ch]" | xargs sed -i -e's/\s\+$$//'
|
||||||
|
find -name "*.cpp" | xargs sed -i -e's/\s\+$$//'
|
||||||
|
find -name "*.tcl" | xargs sed -i -e's/\s\+$$//'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue