2017-10-20 14:30:04 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Executa o comando 'sass' para verificar se existe (veja http://stackoverflow.com/a/677212/329911)
|
|
|
|
command -v sass >/dev/null 2>&1 || {
|
|
|
|
echo >&2 "SASS parece não está disponivel.";
|
|
|
|
exit 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
# Define o caminho.
|
|
|
|
echo "Compilando Sass..."
|
|
|
|
cd src/scss
|
|
|
|
|
2018-05-23 18:22:06 +00:00
|
|
|
sass -E 'UTF-8' --cache-location ../../.tmp/sass-cache-1 tainacan-embeds.scss:../assets/css/tainacan-embeds.css
|
2017-11-06 14:02:51 +00:00
|
|
|
|
2018-01-19 13:33:24 +00:00
|
|
|
cd ../admin/scss
|
2018-05-23 14:17:14 +00:00
|
|
|
sass -E 'UTF-8' --cache-location ../../../.tmp/sass-cache-2 tainacan-admin.scss:../../assets/css/tainacan-admin.css
|
2018-01-19 13:33:24 +00:00
|
|
|
|
|
|
|
|
2017-10-20 14:30:04 +00:00
|
|
|
echo "Compilação do Sass Concluído!"
|
|
|
|
exit 0
|