summaryrefslogtreecommitdiff
path: root/data/meson_compile_gschema.py
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-14 11:36:54 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-12-14 11:36:54 +0100
commitcebf725978b32756700671a646aaed9677f6f219 (patch)
tree8aad7e2e09ba66c6ab36da556f7b8265b31898a6 /data/meson_compile_gschema.py
parent13eec502b99e47e9910b5610869236698e1a8a13 (diff)
parenta632195d632be90e0da0ed0eef4b0987ed4bea6c (diff)
Merge branch 'release/3.26.2-1'3.26.2-1
Diffstat (limited to 'data/meson_compile_gschema.py')
-rwxr-xr-xdata/meson_compile_gschema.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/data/meson_compile_gschema.py b/data/meson_compile_gschema.py
new file mode 100755
index 0000000..d0248f4
--- /dev/null
+++ b/data/meson_compile_gschema.py
@@ -0,0 +1,10 @@
+#!/usr/bin/env python3
+
+import os
+import subprocess
+
+schemadir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'glib-2.0', 'schemas')
+
+if not os.environ.get('DESTDIR'):
+ print('Compiling gsettings schemas...')
+ subprocess.call(['glib-compile-schemas', schemadir])