[libhandy/wip/exalm/dist-script] dist-data: Error out if it can't find docs
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/wip/exalm/dist-script] dist-data: Error out if it can't find docs
- Date: Fri, 5 Aug 2022 15:11:37 +0000 (UTC)
commit 17aa450ba98f97ac0bd7f3b424135ed6898a76f4
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Aug 5 19:10:42 2022 +0400
dist-data: Error out if it can't find docs
The purpose of that script is to include pre-built docs into the tarball,
which relies on docs having been manually built beforehand.
This step is easy to miss, so visibly fail instead of continuing with an
incomplete tarball.
build-aux/meson/dist-data.py | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/build-aux/meson/dist-data.py b/build-aux/meson/dist-data.py
index 1e5b3db8..3899bd22 100644
--- a/build-aux/meson/dist-data.py
+++ b/build-aux/meson/dist-data.py
@@ -3,6 +3,7 @@
import os
import shutil
import subprocess
+import sys
from pathlib import PurePath
@@ -19,3 +20,5 @@ for reference in references:
if os.path.isdir(src_path):
dst_path = os.path.join(distroot, reference)
shutil.copytree(src_path, dst_path)
+ else:
+ sys.exit("Documentation not found. Please pass -Dgtk_doc=true and to Meson and run ninja once.")
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]