| 1 |
#! /usr/bin/env python3 |
| 2 |
# Copyright (C) 2024 fontconfig Authors |
| 3 |
# SPDX-License-Identifier: HPND |
| 4 |
|
| 5 |
import os |
| 6 |
import shutil |
| 7 |
from pathlib import Path |
| 8 |
|
| 9 |
sourcedir = os.environ.get('MESON_SOURCE_ROOT') |
| 10 |
builddir = os.environ.get('MESON_BUILD_ROOT') |
| 11 |
distdir = os.environ.get('MESON_DIST_ROOT') |
| 12 |
|
| 13 |
# Copy manpages |
| 14 |
docdir = Path(distdir) / 'doc' |
| 15 |
for f in (Path(builddir) / 'doc').glob('*.[135]'): |
| 16 |
print(f'Copying {f.name}') |
| 17 |
shutil.copy2(f, docdir) |
| 18 |
|
| 19 |
# Copy config file |
| 20 |
confdir = Path(distdir) / 'conf.d' |
| 21 |
shutil.copy2(Path(builddir) / 'conf.d' / '35-lang-normalize.conf', confdir) |
| 22 |
|
| 23 |
# Documentation |
| 24 |
shutil.copy2(Path(builddir) / 'doc' / 'fontconfig-devel.html', docdir) |
| 25 |
shutil.copy2(Path(builddir) / 'doc' / 'fontconfig-devel.pdf', docdir) |
| 26 |
shutil.copy2(Path(builddir) / 'doc' / 'fontconfig-devel.txt', docdir) |
| 27 |
shutil.copy2(Path(builddir) / 'doc' / 'fontconfig-user.html', docdir) |
| 28 |
shutil.copy2(Path(builddir) / 'doc' / 'fontconfig-user.pdf', docdir) |
| 29 |
shutil.copy2(Path(builddir) / 'doc' / 'fontconfig-user.txt', docdir) |