From 83c9288e138c73060afa035018effb2cf174bf40 Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Fri, 22 May 2020 16:00:05 -0700 Subject: [PATCH] Add Makefile target which strips all trailing whitespace. --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index da70dad7..9e7bea76 100644 --- a/Makefile +++ b/Makefile @@ -127,6 +127,11 @@ tags: ${RM} tags find . ${MODULES} ${PROGRAMS} -name "*.[ch]" -maxdepth 1 | xargs ctags -o tags -TAGS: +TAGS: ${RM} 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\+$$//'