added cleanup.sh file that cleans up all source code

master
Anton Lydike 3 years ago
parent 8560bf6d5b
commit 1a6abb5e1b

@ -0,0 +1,14 @@
#!/usr/bin/env bash
source=$(find -regex '.*\.[ch]')
assembly_source=$(find -iname '*.S')
extended_source=$(find -iname '*.py')
# remove trailing whitespaces from non-uncrustifyable source
echo $assembly_source $extended_source Makefile | xargs sed -i 's/[[:space:]]*$//'
# run uncrustify on source
uncrustify --replace --no-backup -c uncrustify.cfg $source
Loading…
Cancel
Save