From fca7b8d314411ba37ffed7066b66d899baad5b01 Mon Sep 17 00:00:00 2001 From: dglava Date: Sat, 17 Jun 2017 19:44:10 +0200 Subject: [PATCH] Replace Ruby/sass with sassc Upstream Adwaita replaced the Ruby tools for parsing and building the CSS files with a simpler sassc program which is using libsass. More information here: https://github.com/sass/sassc --- Zuki-shell/gnome-shell/parse-sass.sh | 15 +++++++++++++-- Zukitre/gtk-3.0/parse-sass.sh | 15 +++++++++++++-- Zukitwo/gtk-3.0/parse-sass.sh | 15 +++++++++++++-- 3 files changed, 39 insertions(+), 6 deletions(-) diff --git a/Zuki-shell/gnome-shell/parse-sass.sh b/Zuki-shell/gnome-shell/parse-sass.sh index e9cda25..dc82360 100644 --- a/Zuki-shell/gnome-shell/parse-sass.sh +++ b/Zuki-shell/gnome-shell/parse-sass.sh @@ -1,3 +1,14 @@ -#!/usr/bin/bash +#! /bin/bash + +if [ ! "$(which sassc 2> /dev/null)" ]; then + echo sassc needs to be installed to generate the css. + exit 1 +fi + +SASSC_OPT="-M -t compact" + +echo Generating the css... + +sassc $SASSC_OPT gtk-contained.scss gtk-contained.css +sassc $SASSC_OPT gtk-contained-dark.scss gtk-contained-dark.css -bundle exec sass --update --sourcemap=none . diff --git a/Zukitre/gtk-3.0/parse-sass.sh b/Zukitre/gtk-3.0/parse-sass.sh index e385f83..dc82360 100644 --- a/Zukitre/gtk-3.0/parse-sass.sh +++ b/Zukitre/gtk-3.0/parse-sass.sh @@ -1,3 +1,14 @@ -#!/bin/sh +#! /bin/bash + +if [ ! "$(which sassc 2> /dev/null)" ]; then + echo sassc needs to be installed to generate the css. + exit 1 +fi + +SASSC_OPT="-M -t compact" + +echo Generating the css... + +sassc $SASSC_OPT gtk-contained.scss gtk-contained.css +sassc $SASSC_OPT gtk-contained-dark.scss gtk-contained-dark.css -bundle exec sass --update --sourcemap=none . diff --git a/Zukitwo/gtk-3.0/parse-sass.sh b/Zukitwo/gtk-3.0/parse-sass.sh index e385f83..dc82360 100644 --- a/Zukitwo/gtk-3.0/parse-sass.sh +++ b/Zukitwo/gtk-3.0/parse-sass.sh @@ -1,3 +1,14 @@ -#!/bin/sh +#! /bin/bash + +if [ ! "$(which sassc 2> /dev/null)" ]; then + echo sassc needs to be installed to generate the css. + exit 1 +fi + +SASSC_OPT="-M -t compact" + +echo Generating the css... + +sassc $SASSC_OPT gtk-contained.scss gtk-contained.css +sassc $SASSC_OPT gtk-contained-dark.scss gtk-contained-dark.css -bundle exec sass --update --sourcemap=none .