summaryrefslogtreecommitdiffstats
path: root/build-aux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbuild-aux/meson/post-install.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/build-aux/meson/post-install.py b/build-aux/meson/post-install.py
new file mode 100755
index 0000000..162f26d
--- /dev/null
+++ b/build-aux/meson/post-install.py
@@ -0,0 +1,13 @@
+#!/usr/bin/env python3
+
+import os
+import subprocess
+import sys
+
+datadir = sys.argv[1]
+
+# Packaging tools define DESTDIR and this isn't needed for them
+if 'DESTDIR' not in os.environ:
+ print('Compiling GSettings schemas...')
+ subprocess.call(['glib-compile-schemas',
+ os.path.join(datadir, 'glib-2.0', 'schemas')])