diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2017-04-26 16:42:13 -0500 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2017-04-26 20:37:34 -0500 |
commit | 24c68890024ca6653e6f2da0e8929c61e0ebfa0a (patch) | |
tree | a7d3aa6af3f17a7288f1a8c50bbaabb1008f308e /post_install.py | |
parent | 5e2afd83797c76400450c2ee3af85fe9c306bd86 (diff) | |
download | epiphany-24c68890024ca6653e6f2da0e8929c61e0ebfa0a.tar.gz |
Port to meson build system
Diffstat (limited to 'post_install.py')
-rw-r--r-- | post_install.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/post_install.py b/post_install.py new file mode 100644 index 000000000..c1faf093b --- /dev/null +++ b/post_install.py @@ -0,0 +1,19 @@ +#!/usr/bin/python3 + +import os +import pathlib +import subprocess + +prefix = pathlib.Path(os.environ.get('MESON_INSTALL_PREFIX', '/usr/local')) +datadir = prefix / 'share' +destdir = os.environ.get('DESTDIR', '') + +if not destdir: + print('Compiling gsettings schemas...') + subprocess.call(['glib-compile-schemas', str(datadir / 'glib-2.0' / 'schemas')]) + + print('Updating icon cache...') + subprocess.call(['gtk-update-icon-cache', '-qtf', str(datadir / 'icons' / 'hicolor')]) + + print('Updating desktop database...') + subprocess.call(['update-desktop-database', '-q', str(datadir / 'applications')]) |