gnome-chess/meson_post_install.py
Niels De Graef ce6465a9e2 Ported build system to Meson.
See the following links for more info:
* https://mesonbuild.com
* https://wiki.gnome.org/Initiatives/GnomeGoals/MesonPorting

Signed-off-by: Niels De Graef <nielsdegraef@gmail.com>

https://bugzilla.gnome.org/show_bug.cgi?id=787346
2017-09-08 23:09:12 -05:00

15 lines
477 B
Python

#!/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])