1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
#!/usr/bin/make -f
export PYBUILD_NAME=bs4
%:
dh $@ --buildsystem=pybuild
execute_after_dh_auto_build:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
python3 -m sphinx -aEN -b html -d build/doctrees doc build/html
python3 -m sphinx -aEN -b html -D language=es_ES -d build/doctrees.es doc.es build/html.es
python3 -m sphinx -aEN -b html -D language=pt_BR -d build/doctrees.ptbr doc.ptbr/source build/html.ptbr
python3 -m sphinx -aEN -b html -D language=ru_RU -d build/doctrees.ru doc.ru/source build/html.ru
python3 -m sphinx -aEN -b html -D language=zh_CN -d build/doctrees.zh doc.zh/source build/html.zh
endif
override_dh_auto_clean:
dh_auto_clean
rm -rf build
override_dh_installchangelogs:
dh_installchangelogs NEWS.txt
override_dh_installdocs:
dh_installdocs -p python-bs4-doc --doc-main-package=python-bs4-doc
dh_installdocs --remaining-packages
|