Files
feedbackd/build-aux/post_install.py
T
Dylan Van Assche 2e92c181a0 meson.build: compile GLib schemas on install
Run a script as a post install to make sure that all GLib schemas are compiled
2021-01-01 18:38:47 +01:00

15 lines
303 B
Python

#!/usr/bin/python3
import os
import subprocess
import sys
destdir = os.environ.get('DESTDIR', '')
if not destdir and len(sys.argv) > 1:
datadir = sys.argv[1]
print('Compiling gsettings schemas...')
subprocess.call(['glib-compile-schemas', os.path.join(datadir, 'glib-2.0', 'schemas')])