2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 10:58:58 +00:00

Convert build-doc to cmake

This commit is contained in:
Jay Berkenbilt 2022-03-12 06:46:26 -05:00 committed by Jay Berkenbilt
parent 1b85faa61a
commit 2515498c36
2 changed files with 8 additions and 8 deletions

View File

@ -11,8 +11,8 @@ https://github.com/qpdf/qpdf/releases
Offline documentation contains the following:
* PDF: qpdf-manual.pdf
* HTML: html/index.html
* SINGLE-PAGE HTML: singlehtml/index.html
* HTML: manual-html/index.html
* SINGLE-PAGE HTML: manual-single-page-html/index.html
If you are reading this file from the source distribution, you can
find the documentation sources in the "manual" directory. There is

View File

@ -4,14 +4,14 @@ cd $(dirname $0)/..
set -ex
sudo apt-get update
sudo apt-get -y install \
autoconf build-essential zlib1g-dev libjpeg-dev \
autoconf build-essential cmake zlib1g-dev libjpeg-dev \
python3-pip texlive-latex-extra latexmk
pip3 install sphinx sphinx_rtd_theme
./configure --enable-doc-maintenance
make -j$(nproc) doc-dist DOC_DEST=doc
zip -r doc.zip doc
cmake -S . -B build -DBUILD_DOC=1
cmake --build build --target doc_dist
zip -r doc.zip build/manual/doc-dist
version=$(egrep '^release' manual/conf.py | cut -d"'" -f 2)
mv doc qpdf-${version}-doc
mv build/manual/doc-dist qpdf-${version}-doc
mkdir distribution
zip -r distribution/qpdf-${version}-doc.zip qpdf-${version}-doc
zip -r distribution/qpdf-${version}-doc-ci.zip qpdf-${version}-doc
sha256sum distribution/*