summaryrefslogtreecommitdiff
path: root/build-aux/post-install.py
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/post-install.py')
-rwxr-xr-xbuild-aux/post-install.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/build-aux/post-install.py b/build-aux/post-install.py
deleted file mode 100755
index 69d526a..0000000
--- a/build-aux/post-install.py
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/usr/bin/env 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')])