build: move script to meson subdir

This makes things more like various other projects in GNOME.
This commit is contained in:
Christian Hergert
2017-09-28 16:27:26 -07:00
parent 7c45789a40
commit 4f93ede6fa
2 changed files with 1 additions and 1 deletions

24
build-aux/meson/post_install.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/sh
if [ -z $MESON_INSTALL_PREFIX ]; then
echo 'This is meant to be ran from Meson only!'
exit 1
fi
if [ -z $DESTDIR ]; then
echo 'Compiling GSchema'
glib-compile-schemas "$MESON_INSTALL_PREFIX/share/glib-2.0/schemas"
echo 'Updating mime database'
update-mime-database "$MESON_INSTALL_PREFIX/share/mime"
if [ -e "$MESON_INSTALL_PREFIX/bin/sysprof" ]; then
echo 'Updating icon cache'
gtk-update-icon-cache -qtf "$MESON_INSTALL_PREFIX/share/icons/hicolor"
echo 'Updating desktop database'
update-desktop-database -q "$MESON_INSTALL_PREFIX/share/applications"
fi
fi