mirror of
https://github.com/TakeV-Lambda/Tooth.git
synced 2024-11-01 13:40:21 +00:00
16 lines
No EOL
518 B
Python
16 lines
No EOL
518 B
Python
#!/usr/bin/env python3
|
|
|
|
import os
|
|
import subprocess
|
|
|
|
schemadir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'glib-2.0', 'schemas')
|
|
iconsdir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'icons', 'hicolor')
|
|
|
|
if not os.environ.get('DESTDIR'):
|
|
print('Compiling gsettings schemas...')
|
|
subprocess.call(['glib-compile-schemas', schemadir])
|
|
|
|
print('Updating icon cache...')
|
|
if not os.path.exists(iconsdir):
|
|
os.makedirs(iconsdir)
|
|
subprocess.call(['gtk-update-icon-cache', '-qtf', iconsdir]) |