[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 04/04: meson: simplify dist script
From: |
gnunet |
Subject: |
[gnunet] 04/04: meson: simplify dist script |
Date: |
Wed, 27 Dec 2023 21:45:29 +0100 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit 83fbbaeff0b2926e2787eae6bca5354908be5cb3
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Wed Dec 27 21:45:10 2023 +0100
meson: simplify dist script
---
meson-dist-script | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/meson-dist-script b/meson-dist-script
index e5e9287dc..5d5cf9942 100644
--- a/meson-dist-script
+++ b/meson-dist-script
@@ -2,5 +2,14 @@
set -eu
-cd "${MESON_DIST_ROOT}"
-. ./scripts/sphinx_update.sh
+HANDBOOK_BOOTSTRAP=${MESON_SOURCE_ROOT}/contrib/handbook/_build
+
+if [ ! -d ${HANDBOOK_BOOTSTRAP}/html ] || [ ! -d ${HANDBOOK_BOOTSTRAP}/texinfo
]
+then
+ echo "Handbook not found, did you run bootstrap? Trying to compile now..."
+ cd "${MESON_DIST_ROOT}"
+ . ./scripts/sphinx_update.sh || exit 1
+else
+ cp -r ${HANDBOOK_BOOTSTRAP}/html ${MESON_DIST_ROOT}/handbook/ || exit 1
+ cp -r ${HANDBOOK_BOOTSTRAP}/texinfo ${MESON_DIST_ROOT}/handbook/ || exit 1
+fi
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.