summaryrefslogtreecommitdiffstats
path: root/build-aux
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:17:06 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 18:17:06 +0000
commit744613caa871bccf3d490b11bfd6c16b180e79f7 (patch)
treedea28958854eba5e608bc718638214d2d2de7a81 /build-aux
parentInitial commit. (diff)
downloadgsettings-desktop-schemas-upstream.tar.xz
gsettings-desktop-schemas-upstream.zip
Adding upstream version 43.0.upstream/43.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'build-aux')
-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')])