2020-12-28 18:01:03 -05:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
import os
|
|
|
|
from pathlib import PurePath
|
|
|
|
import subprocess
|
|
|
|
|
|
|
|
stylesheets = [
|
|
|
|
'data/theme/gnome-shell-high-contrast.css',
|
2022-06-03 10:15:38 -04:00
|
|
|
'data/theme/gnome-shell-dark.css',
|
|
|
|
'data/theme/gnome-shell-light.css'
|
2020-12-28 18:01:03 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
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)
|
2021-09-05 18:38:54 -04:00
|
|
|
subprocess.run(['sassc', '-a', src, dst], check=True)
|