aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2023-12-27 21:45:10 +0100
committerMartin Schanzenbach <schanzen@gnunet.org>2023-12-27 21:45:10 +0100
commit83fbbaeff0b2926e2787eae6bca5354908be5cb3 (patch)
tree039ed3a94436bfefae48e5296db4c948bcff5983
parente02bdeed65fac4a872b050162ba9bdd21e4cde87 (diff)
downloadgnunet-83fbbaeff0b2926e2787eae6bca5354908be5cb3.tar.gz
gnunet-83fbbaeff0b2926e2787eae6bca5354908be5cb3.zip
meson: simplify dist script
-rw-r--r--meson-dist-script13
1 files 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 @@
2 2
3set -eu 3set -eu
4 4
5cd "${MESON_DIST_ROOT}" 5HANDBOOK_BOOTSTRAP=${MESON_SOURCE_ROOT}/contrib/handbook/_build
6. ./scripts/sphinx_update.sh 6
7if [ ! -d ${HANDBOOK_BOOTSTRAP}/html ] || [ ! -d ${HANDBOOK_BOOTSTRAP}/texinfo ]
8then
9 echo "Handbook not found, did you run bootstrap? Trying to compile now..."
10 cd "${MESON_DIST_ROOT}"
11 . ./scripts/sphinx_update.sh || exit 1
12else
13 cp -r ${HANDBOOK_BOOTSTRAP}/html ${MESON_DIST_ROOT}/handbook/ || exit 1
14 cp -r ${HANDBOOK_BOOTSTRAP}/texinfo ${MESON_DIST_ROOT}/handbook/ || exit 1
15fi