"Fossies" - the Fresh Open Source Software Archive 
Member "revelation-0.5.4/meson_post_conf.py" (4 Oct 2020, 523 Bytes) of package /linux/privat/revelation-0.5.4.tar.xz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "meson_post_conf.py" see the
Fossies "Dox" file reference documentation.
1 #!/usr/bin/env python3
2
3 import os
4 import subprocess
5
6 build_root = os.environ.get('MESON_BUILD_ROOT')
7 source_root = os.environ.get('MESON_SOURCE_ROOT')
8
9 print('Install schemas in build dir…')
10
11 source_datadir = os.path.join(source_root, 'data')
12 source_file = os.path.join(source_datadir, 'gschemas.compiled')
13 targetdir = os.path.join(build_root, 'data', 'glib-2.0', 'schemas')
14
15 subprocess.call(['glib-compile-schemas', source_datadir])
16 subprocess.call(['mkdir', '-p', targetdir])
17 subprocess.call(['mv', source, targetdir])