forked from Mirrors/wasm3
parent
c2ae903635
commit
302dd3e741
@ -0,0 +1,9 @@
|
||||
.PHONY: format
|
||||
|
||||
all:
|
||||
|
||||
format:
|
||||
# Convert tabs to spaces
|
||||
find ./source -type f -iname '*.[cpp\|c\|h]' -exec bash -c 'expand -t 4 "$$0" | sponge "$$0"' {} \;
|
||||
# Remove trailing whitespaces
|
||||
find ./source -type f -iname '*.[cpp\|c\|h]' -exec sed -i 's/ *$$//' {} \;
|
Loading…
Reference in new issue