[gnome-shell/wip/fmuellner/meson-postinstall: 11/11] build: Run postinstall script where necessary
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/fmuellner/meson-postinstall: 11/11] build: Run postinstall script where necessary
- Date: Mon, 9 Apr 2018 19:20:16 +0000 (UTC)
commit 9c0707d4dc1917bdf42534abedfe27b512a98513
Author: Florian Müllner <fmuellner gnome org>
Date: Sun Mar 18 22:07:32 2018 +0100
build: Run postinstall script where necessary
Package managers usually take care of compiling GSettings schemas and
updating the .desktop database on installation, but when building
manually from source, we should perform the aforementioned actions
ourselves.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/127
meson.build | 2 ++
meson/meson-postinstall.sh | 10 ++++++++++
2 files changed, 12 insertions(+)
---
diff --git a/meson.build b/meson.build
index 4bc70274e..a420e7963 100644
--- a/meson.build
+++ b/meson.build
@@ -189,3 +189,5 @@ subdir('tests')
if get_option('gtk_doc')
subdir('docs/reference')
endif
+
+meson.add_install_script('meson/meson-postinstall.sh')
diff --git a/meson/meson-postinstall.sh b/meson/meson-postinstall.sh
new file mode 100755
index 000000000..4500dcb01
--- /dev/null
+++ b/meson/meson-postinstall.sh
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# Package managers set this so we don't need to run
+if [ -z "$DESTDIR" ]; then
+ echo Compiling GSettings schemas...
+ glib-compile-schemas ${MESON_INSTALL_PREFIX}/share/glib-2.0/schemas
+
+ echo Updating desktop database...
+ update-desktop-database -q ${MESON_INSTALL_PREFIX}/share/applications
+fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]