1234567891011121314151617 |
- #!/usr/bin/env bash
-
-
-
-
- TMPDIR=`mktemp -d`
-
-
- if uncrustify -l CPP -c ./buildroot/share/extras/uncrustify.cfg -f "$1" >$TMPDIR/uncrustify.out ; then
- cp "$TMPDIR/uncrustify.out" "$1" ;
- else
- echo "Something went wrong with uncrustify."
- fi
-
-
- [[ -f "$TMPDIR/uncrustify.out" ]] && rm "$TMPDIR/uncrustify.out"
- rmdir "$TMPDIR"
|