gnome-control-center/build-aux/meson/meson_post_install.py
Georges Basile Stavracas Neto e2a18bec49 project: Move build files to build-aux
An attempt to make the root folder slightly less
cluttered and more organized. No functional changes
whatsoever.
2018-05-14 13:37:41 -03:00

15 lines
438 B
Python

#!/usr/bin/env python3
import os
import subprocess
import sys
gsettingsschemadir = os.path.join(sys.argv[1], 'glib-2.0', 'schemas')
icondir = os.path.join(sys.argv[1], 'icons', 'hicolor')
if not os.environ.get('DESTDIR'):
print('Compiling gsettings schemas...')
subprocess.call(['glib-compile-schemas', gsettingsschemadir])
print('Update icon cache...')
subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir])