My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

build_example 882B

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 -s -a -n1 || { echo "Failed"; exit 1; }
  22. echo "Success"