aboutsummaryrefslogtreecommitdiff
path: root/meson-dist-script
blob: 5d5cf99429268bb80f6d4c9ae316222ed3b4409f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -eu

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