1
0
Fork 0
gnome-shell/meson/generate-stylesheets.py
Daniel Baumann 1fcdbd5df9
Adding upstream version 48.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 20:26:11 +02:00

20 lines
569 B
Python

#!/usr/bin/env python3
import os
from pathlib import PurePath
import subprocess
stylesheets = [
'data/theme/gnome-shell-high-contrast.css',
'data/theme/gnome-shell-dark.css',
'data/theme/gnome-shell-light.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)