~tristan957/harvest-almanac

ref: 0f0fa7109d3fb40354c03f4ba0fcda63df8280e4 harvest-almanac/meson_post_install.sh -rwxr-xr-x 449 bytes
0f0fa710Tristan Partin harvest-glib: fix implicit fallthrough 1 year, 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

icon_cache_folder="$MESON_INSTALL_PREFIX/share/icons/hicolor"

if [ -z $DESTDIR ]; then
	echo 'Compiling GSchema'
	glib-compile-schemas "$MESON_INSTALL_PREFIX/share/glib-2.0/schemas"

	if [ -f "$icon_cache_folder/.icon-theme.cache" ]; then
		echo 'Updating icon cache'
		gtk-update-icon-cache -qtf $icon_cache_folder
	fi

	echo 'Updating desktop database'
	update-desktop-database -q "$MESON_INSTALL_PREFIX/share/applications"
fi