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.

check-fonts 487 B

15 jaren geleden
15 jaren geleden
12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh
  2. ret=0
  3. #
  4. # Check that we have no tabs or trailing spaces in the source code
  5. #
  6. nfails=0
  7. nfonts=0
  8. for x in $(make -s echo-fonts -C ../fonts); do
  9. case "$x" in
  10. *.tlf|*.flf) ;;
  11. *) continue ;;
  12. esac
  13. nfonts=$(($nfonts + 1))
  14. if ../src/toilet -d ../fonts -f "$x" Hello World >/dev/null; then
  15. :
  16. else
  17. echo "Error loading font $x"
  18. nfails=$(($nfails + 1))
  19. fi
  20. done
  21. echo "$nfonts fonts, $nfails load errors"
  22. if test "$nfails" != "0"; then
  23. exit 1
  24. fi
  25. exit 0