build.sh 570 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. # Generated of fonts
  3. #
  4. # build
  5. if [[ -n "$(ls -a ./lab/)" && -f ./lab/metadata.json && -f ./lab/svg2ttf.py ]];
  6. then
  7. ./lab/svg2ttf.py ./lab/metadata.json
  8. fi
  9. install -d -m755 -v "./dist/fonts/"
  10. install -d -m755 -v "./dist/css/"
  11. # copy files to fonts
  12. if [[ -n "$(ls -a ./lab/libresocial.{svg,otf,ttf,woff})" ]];
  13. then
  14. rm -fv ./dist/fonts/libresocial.{svg,otf,ttf,woff}
  15. mv -fv ./lab/libresocial.{svg,otf,ttf,woff} ./dist/fonts/
  16. fi
  17. rm -v ./dist/css/libresocial.css 2> /dev/null || true
  18. sassc -t expanded scss/libresocial.scss dist/css/libresocial.css