My Marlin configs for Fabrikator Mini and CTC i3 Pro B
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

uncrust 446B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. #
  3. # Run uncrustify for a file in-place
  4. #
  5. TMPDIR=`mktemp -d`
  6. # Reformat a single file to tmp/
  7. if uncrustify -l CPP -c ./buildroot/share/extras/uncrustify.cfg -f "$1" >$TMPDIR/uncrustify.out ; then
  8. cp "$TMPDIR/uncrustify.out" "$1" ; # Replace the original file
  9. else
  10. echo "Something went wrong with uncrustify."
  11. fi
  12. # Clean up, deliberately
  13. [[ -f "$TMPDIR/uncrustify.out" ]] && rm "$TMPDIR/uncrustify.out"
  14. rmdir "$TMPDIR"