[gssdp/wip/phako/gi-docgen] doc: Dist docs
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gssdp/wip/phako/gi-docgen] doc: Dist docs
- Date: Sat, 19 Jun 2021 11:49:24 +0000 (UTC)
commit 2efc67d54153da5c7c0205eaf8d5c79ee19a2ee2
Author: Jens Georg <mail jensge org>
Date: Sat Jun 19 13:45:39 2021 +0200
doc: Dist docs
build-aux/dist-docs.py | 19 +++++++++++++++++++
meson.build | 4 ++++
2 files changed, 23 insertions(+)
---
diff --git a/build-aux/dist-docs.py b/build-aux/dist-docs.py
new file mode 100644
index 0000000..d9c7cdc
--- /dev/null
+++ b/build-aux/dist-docs.py
@@ -0,0 +1,19 @@
+#!/usr/bin/env python3
+
+import os
+import shutil
+
+references = [
+ 'docs/GSSDP',
+]
+
+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)
+
diff --git a/meson.build b/meson.build
index 275116e..6f327e8 100644
--- a/meson.build
+++ b/meson.build
@@ -93,3 +93,7 @@ endif
if get_option('examples')
subdir('examples')
endif
+
+if not meson.is_subproject()
+ meson.add_dist_script('build-aux/dist-docs.py')
+endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]