From e4283f6d48b98e764b988b43bbc86b9d52e6ec94 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 19:54:43 +0200 Subject: Adding upstream version 43.9. Signed-off-by: Daniel Baumann --- meson/generate-stylesheets.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meson/generate-stylesheets.py (limited to 'meson/generate-stylesheets.py') diff --git a/meson/generate-stylesheets.py b/meson/generate-stylesheets.py new file mode 100644 index 0000000..bd6b641 --- /dev/null +++ b/meson/generate-stylesheets.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 + +import os +from pathlib import PurePath +import subprocess + +stylesheets = [ + 'data/theme/gnome-shell-high-contrast.css', + 'data/theme/gnome-shell.css' +] + +sourceroot = os.environ.get('MESON_SOURCE_ROOT') +distroot = os.environ.get('MESON_DIST_ROOT') + +for stylesheet in stylesheets: + stylesheet_path = PurePath(stylesheet) + src = PurePath(sourceroot, stylesheet_path.with_suffix('.scss')) + dst = PurePath(distroot, stylesheet_path) + subprocess.run(['sassc', '-a', src, dst], check=True) -- cgit v1.2.3