summaryrefslogtreecommitdiff
path: root/build-aux/meson/dist-docs.py
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-03-17 12:06:46 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-03-17 12:06:46 +0000
commit99f7ba0174402ba481de7763457286cb74bd36d8 (patch)
tree2699ce79d7b5608e77cf4ee7f11a8d130d05c429 /build-aux/meson/dist-docs.py
parentdf366de870fedf0cecd46d9c25d6b4c03a3b030f (diff)
parent45f7092424dd3a867cb95040019d912ef0854895 (diff)
downloadpango-99f7ba0174402ba481de7763457286cb74bd36d8.tar.gz
Merge branch 'ebassi/dist-docs' into 'master'
build: Add documentation to the release tarball See merge request GNOME/pango!295
Diffstat (limited to 'build-aux/meson/dist-docs.py')
-rwxr-xr-xbuild-aux/meson/dist-docs.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/build-aux/meson/dist-docs.py b/build-aux/meson/dist-docs.py
new file mode 100755
index 00000000..95887412
--- /dev/null
+++ b/build-aux/meson/dist-docs.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python3
+
+import os
+import shutil
+
+references = [
+ 'docs/Pango',
+ 'docs/PangoCairo',
+ 'docs/PangoFc',
+ 'docs/PangoFT2',
+ 'docs/PangoOT',
+ 'docs/PangoXft',
+]
+
+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)