Debian Codegraph @

build-aux/meson/dist-data.py

raw
1 #!/usr/bin/env python3
2
3 import os
4 import shutil
5 import subprocess
6 import sys
7
8 from pathlib import PurePath
9
10 references = [
11 'doc/libhandy-1',
12 ]
13
14 sourceroot = os.environ.get('MESON_SOURCE_ROOT')
15 buildroot = os.environ.get('MESON_BUILD_ROOT')
16 distroot = os.environ.get('MESON_DIST_ROOT')
17
18 for reference in references:
19 src_path = os.path.join(buildroot, reference)
20 if os.path.isdir(src_path):
21 dst_path = os.path.join(distroot, reference)
22 shutil.copytree(src_path, dst_path)
23 else:
24 sys.exit("Documentation not found. Please pass -Dgtk_doc=true and to Meson and run ninja once.")