mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
build: Add postinstall script
... to compile schemas and update the desktop database when installing from source rather than building a distribution package. https://gitlab.gnome.org/GNOME/mutter/merge_requests/756
This commit is contained in:
parent
a3c97ee535
commit
ccefa87351
@ -404,6 +404,8 @@ subdir('src')
|
|||||||
subdir('po')
|
subdir('po')
|
||||||
subdir('doc/man')
|
subdir('doc/man')
|
||||||
|
|
||||||
|
meson.add_install_script('meson/meson-postinstall.sh')
|
||||||
|
|
||||||
output = [
|
output = [
|
||||||
'',
|
'',
|
||||||
'',
|
'',
|
||||||
|
10
meson/meson-postinstall.sh
Executable file
10
meson/meson-postinstall.sh
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user