mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
meson: convert post-install.sh to python
Inspired by: 36a2e4f8a7 (0cc1139e3347f573ae1feee5b73dbc8a8a21fcfa_0_14)
Signed-off-by: David Heidelberg <david@ixit.cz>
This commit is contained in:
parent
a17cc55c4c
commit
5231483432
4 changed files with 16 additions and 14 deletions
14
src/modules/gsettings/meson_post_install.py
Normal file
14
src/modules/gsettings/meson_post_install.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
datadir = sys.argv[1]
|
||||
|
||||
# Package managers set this so we don't need to run
|
||||
if not os.environ.get('DESTDIR'):
|
||||
schemadir = os.path.join(datadir, 'glib-2.0', 'schemas')
|
||||
print('Compiling gsettings schemas...')
|
||||
subprocess.call(['glib-compile-schemas', schemadir])
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue