summaryrefslogtreecommitdiff
path: root/meson_post_install.py
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2020-04-05 22:02:48 +0800
committerraveit65 <[email protected]>2020-08-15 17:28:55 +0200
commitbc13d9f3af1d5114e47b75633c4fd5578214b460 (patch)
treec5641c063f491a00e98d17bd854cbd4c09c78581 /meson_post_install.py
parent2bb203914be10384b168282cb0ce592086fc99c8 (diff)
downloadmate-terminal-bc13d9f3af1d5114e47b75633c4fd5578214b460.tar.bz2
mate-terminal-bc13d9f3af1d5114e47b75633c4fd5578214b460.tar.xz
add meson build system
Diffstat (limited to 'meson_post_install.py')
-rwxr-xr-xmeson_post_install.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/meson_post_install.py b/meson_post_install.py
new file mode 100755
index 0000000..a09d57d
--- /dev/null
+++ b/meson_post_install.py
@@ -0,0 +1,17 @@
+#!/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')])
+
+ print('Updating desktop database...')
+ subprocess.call(['update-desktop-database', '-q',
+ os.path.join(datadir, 'applications')])