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

build_example 879B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env bash
  2. #
  3. # build_example
  4. #
  5. # Usage: build_example internal config-home config-folder
  6. #
  7. # Require 'internal' as the first argument
  8. [[ "$1" == "internal" ]] || { echo "Don't call this script directly, use build_all_examples instead." ; exit 1 ; }
  9. echo "Testing $3:"
  10. SUB=$2/config/examples/$3
  11. [[ -d "$SUB" ]] || { echo "$SUB is not a good path" ; exit 1 ; }
  12. compgen -G "${SUB}Con*.h" > /dev/null || { echo "No configuration files found in $SUB" ; exit 1 ; }
  13. echo "Getting configuration files from $SUB"
  14. cp "$2/config/default"/*.h Marlin/
  15. cp "$SUB"/Configuration.h Marlin/ 2>/dev/null
  16. cp "$SUB"/Configuration_adv.h Marlin/ 2>/dev/null
  17. cp "$SUB"/_Bootscreen.h Marlin/ 2>/dev/null
  18. cp "$SUB"/_Statusscreen.h Marlin/ 2>/dev/null
  19. echo "Building the firmware now..."
  20. HERE=`dirname "$0"`
  21. $HERE/mftest -a -n1 || { echo "Failed"; exit 1; }
  22. echo "Success"