2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-06 05:17:52 +00:00
qpdf/build-scripts/build-doc

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
607 B
Plaintext
Raw Normal View History

#!/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 \
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
cmake --build build --verbose --target doc_dist
2022-03-12 11:46:26 +00:00
zip -r doc.zip build/manual/doc-dist
version=$(grep -E '^ +VERSION [1-9]' CMakeLists.txt | awk '{print $2}')
2022-03-12 11:46:26 +00:00
mv build/manual/doc-dist qpdf-${version}-doc
mkdir distribution
2022-03-12 11:46:26 +00:00
zip -r distribution/qpdf-${version}-doc-ci.zip qpdf-${version}-doc
sha256sum distribution/*