12345678910111213141516171819202122 |
- #!/bin/sh
- # Generated of fonts
- #
- # build
- if [[ -n "$(ls -a ./lab/)" && -f ./lab/metadata.json && -f ./lab/svg2ttf.py ]];
- then
- ./lab/svg2ttf.py ./lab/metadata.json
- fi
- install -d -m755 -v "./dist/fonts/"
- install -d -m755 -v "./dist/css/"
- # copy files to fonts
- if [[ -n "$(ls -a ./lab/libresocial.{svg,otf,ttf,woff})" ]];
- then
- rm -fv ./dist/fonts/libresocial.{svg,otf,ttf,woff}
- mv -fv ./lab/libresocial.{svg,otf,ttf,woff} ./dist/fonts/
- fi
- rm -v ./dist/css/libresocial.css 2> /dev/null || true
- sassc -t expanded scss/libresocial.scss dist/css/libresocial.css
|