diff --git a/cleanup.sh b/cleanup.sh new file mode 100755 index 0000000..54edfcf --- /dev/null +++ b/cleanup.sh @@ -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 \ No newline at end of file