File: dist-docs.py

package info (click to toggle)
json-glib 1.10.6%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,476 kB
  • sloc: ansic: 13,543; sh: 39; python: 28; makefile: 16; javascript: 5
file content (22 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env python3

# SPDX-FileCopyrightText: 2021 Emmanuele Bassi
# SPDX-License-Identifier: LGPL-2.1-or-later

import os
import shutil


references = [
    'doc/json-glib-1.0',
]

sourceroot = os.environ.get('MESON_SOURCE_ROOT')
buildroot = os.environ.get('MESON_BUILD_ROOT')
distroot = os.environ.get('MESON_DIST_ROOT')

for reference in references:
    src_path = os.path.join(buildroot, reference)
    if os.path.isdir(src_path):
        dst_path = os.path.join(distroot, reference)
        shutil.copytree(src_path, dst_path)