Changeset View
Changeset View
Standalone View
Standalone View
scripts/fetch_documentation.sh
Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Lines | then | ||||
# xvfb is only needed to build 0.22.3. Once this version is phased out, | # xvfb is only needed to build 0.22.3. Once this version is phased out, | ||||
# xvfb can be removed. | # xvfb can be removed. | ||||
if ! command -v xvfb-run | if ! command -v xvfb-run | ||||
then | then | ||||
echo "xvfb is required to build 0.22.3 docs headlessly, please install it" | echo "xvfb is required to build 0.22.3 docs headlessly, please install it" | ||||
exit 3 | exit 3 | ||||
fi | fi | ||||
# Build and install the man pages | |||||
cmake -GNinja "${SRC_DIR}" -DCLIENT_VERSION_IS_RELEASE=ON -DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" | |||||
if [[ "${VERSION}" == "0.22.3" ]]; then | if [[ "${VERSION}" == "0.22.3" ]]; then | ||||
# Cherry pick a fix to ensure the version number is set correctly | # Cherry pick a fix to ensure the version number is set correctly | ||||
git cherry-pick 6f59a8facadb99ffa0f64421d7248043de507c64 | git cherry-pick 6f59a8facadb99ffa0f64421d7248043de507c64 | ||||
fi | |||||
# Build and install the man pages | |||||
cmake -GNinja "${SRC_DIR}" -DCLIENT_VERSION_IS_RELEASE=ON -DCMAKE_INSTALL_PREFIX="${INSTALL_DIR}" | |||||
if [[ "${VERSION}" == "0.22.3" ]]; then | |||||
xvfb-run -a -e /dev/stderr ninja install-manpages-html | xvfb-run -a -e /dev/stderr ninja install-manpages-html | ||||
else | else | ||||
ninja install-manpages-html | ninja install-manpages-html | ||||
fi | fi | ||||
mkdir -p "${VERSION_DIR}/man" | mkdir -p "${VERSION_DIR}/man" | ||||
# Cache the result | # Cache the result | ||||
cp "${INSTALL_DIR}"/share/man/html/* "${VERSION_DIR}/man/" | cp "${INSTALL_DIR}"/share/man/html/* "${VERSION_DIR}/man/" | ||||
fi | fi | ||||
Show All 15 Lines |