You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
364 B
Bash
14 lines
364 B
Bash
#!/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 |