You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
477 B
15 lines
477 B
#!/usr/bin/env python3 |
|
|
|
import os |
|
import subprocess |
|
|
|
install_prefix = os.environ['MESON_INSTALL_PREFIX'] |
|
icondir = os.path.join(install_prefix, 'share', 'icons', 'hicolor') |
|
schemadir = os.path.join(install_prefix, 'share', 'glib-2.0', 'schemas') |
|
|
|
if not os.environ.get('DESTDIR'): |
|
print('Update icon cache...') |
|
subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir]) |
|
|
|
print('Compiling gsettings schemas...') |
|
subprocess.call(['glib-compile-schemas', schemadir])
|
|
|