My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

get-bdf2u8g.sh 793B

12345678910111213141516171819202122232425262728293031
  1. #!/usr/bin/env bash
  2. #####################################################################
  3. # get-bdf2u8g.sh for Marlin
  4. #
  5. # This script downloads, patches, and builds bdf2u8g
  6. # License: CC-SA
  7. #
  8. # Execute from within buildroot/share/fonts
  9. #
  10. #####################################################################
  11. HERE=$(pwd)
  12. [[ $HERE =~ 'buildroot/share/fonts'$ ]] || { echo "Change to buildroot/share/fonts to run $(basename $0)" ; exit 1; }
  13. # Download u8glib
  14. curl -LJO https://github.com/olikraus/u8glib/archive/master.zip
  15. unzip u8glib-master.zip >/dev/null 2>&1
  16. # Patch and build bdf2u8g
  17. cd u8glib-master/tools/font/bdf2u8g
  18. patch -p0 <../../../../u8glib-bdf2u8g.patch bdf2u8g.c >/dev/null 2>&1
  19. make >/dev/null 2>&1
  20. mv bdf2u8g ../../../../
  21. # Clean up
  22. cd -
  23. rm -rf u8glib-master*
  24. cd "$HERE"