2021-12-21 14:23:20 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# The manual references this file.
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
set -ex
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get -y install \
|
2022-03-12 11:46:26 +00:00
|
|
|
autoconf build-essential cmake zlib1g-dev libjpeg-dev \
|
2021-12-21 14:23:20 +00:00
|
|
|
python3-pip texlive-latex-extra latexmk
|
|
|
|
pip3 install sphinx sphinx_rtd_theme
|
2022-03-12 11:46:26 +00:00
|
|
|
cmake -S . -B build -DBUILD_DOC=1
|
2022-10-06 11:14:23 +00:00
|
|
|
cmake --build build --verbose --target doc_dist
|
2022-03-12 11:46:26 +00:00
|
|
|
zip -r doc.zip build/manual/doc-dist
|
2022-09-08 20:26:47 +00:00
|
|
|
version=$(grep -E '^release' manual/conf.py | cut -d"'" -f 2)
|
2022-03-12 11:46:26 +00:00
|
|
|
mv build/manual/doc-dist qpdf-${version}-doc
|
2021-12-21 14:23:20 +00:00
|
|
|
mkdir distribution
|
2022-03-12 11:46:26 +00:00
|
|
|
zip -r distribution/qpdf-${version}-doc-ci.zip qpdf-${version}-doc
|
2021-12-21 14:23:20 +00:00
|
|
|
sha256sum distribution/*
|