mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
feat(apps): Add a tool to remove trailing whitespaces (#4074)
This commit is contained in:
3
apps/whitespace_remover/whitespace_remover.sh
Normal file
3
apps/whitespace_remover/whitespace_remover.sh
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# Change '*.cpp' and '*.h' to the extension you want to remove whitespaces in.
|
||||||
|
find -name '*.cpp' -print0 | xargs -r0 sed -e 's/[[:blank:]]\+$//' -i
|
||||||
|
find -name '*.h' -print0 | xargs -r0 sed -e 's/[[:blank:]]\+$//' -i
|
||||||
Reference in New Issue
Block a user