2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

Adapt tarball comparison to dropped pregenerated man pages

Since pregenerated manual pages were removed from the BIND 9 repository,
Sphinx must be present in the build environment for manual pages to be
created and placed to release tarball. release-tarball-comparison.sh
script needs to be adapted to keep up with how to release tarballs are
prepared.
This commit is contained in:
Michal Nowak
2023-03-07 19:42:19 +01:00
parent 9c304714e3
commit 0bc4fad065

View File

@@ -62,6 +62,10 @@ run_in_container "apt-get update && \
xz-utils \
"
run_in_container "apt-get -y install --no-install-recommends python3-pip && \
rm -f /usr/lib/python3.*/EXTERNALLY-MANAGED && \
pip3 install docutils==0.17.1 sphinx-rtd-theme==1.1.1 sphinx==5.3.0"
# Retrieve the release-ready BIND 9 tarball.
docker cp "${BIND_TARBALL}" "${CONTAINER_ID}:/usr/src"
@@ -76,6 +80,10 @@ run_in_container "git -c advice.detachedHead=false clone --branch $(echo "v${BIN
mkdir ${BIND_DIRECTORY} && \
echo SRCID=\$(git rev-list --max-count=1 HEAD | cut -b1-7) > ${BIND_DIRECTORY}/srcid && \
tar --append --file=${BIND_DIRECTORY}.tar ${BIND_DIRECTORY}/srcid && \
sphinx-build -b man -d ${BIND_DIRECTORY}/tmp/.doctrees/ -W -a -v -c doc/man/ -D version=@BIND9_VERSION@ -D today=@RELEASE_DATE@ -D release=@BIND9_VERSIONSTRING@ doc/man ${BIND_DIRECTORY}/doc/man && \
rm -rf ${BIND_DIRECTORY}/tmp/.doctrees/ && \
for man in ${BIND_DIRECTORY}/doc/man/*; do mv \${man} \${man}in; done && \
tar --append --file=${BIND_DIRECTORY}.tar ${BIND_DIRECTORY}/doc/man/*in && \
xz ${BIND_DIRECTORY}.tar; \
else \
autoreconf -fi && \