d/rules: Change docs suffix from txt to rst
Ondřej Nový
5 years ago
4 | 4 |
* Bump debhelper compat level to 12 and use debhelper-compat
|
5 | 5 |
* Bump standards version to 4.3.0 (no changes)
|
6 | 6 |
* Use pytest instead of nose (same as upstream)
|
|
7 |
* d/rules: Change docs suffix from txt to rst
|
7 | 8 |
|
8 | 9 |
-- Ondřej Nový <onovy@debian.org> Mon, 31 Dec 2018 23:52:09 +0100
|
9 | 10 |
|
4 | 4 |
rm {destdir}{install_dir}/*/namespace_packages.txt
|
5 | 5 |
|
6 | 6 |
DOCS=$(shell cd docs &&\
|
7 | |
find ./ -maxdepth 1 -name "*.txt" -not -name "license.txt" -printf "%p " |\
|
8 | |
sed "s/.txt//g")
|
|
7 |
find ./ -maxdepth 1 -name "*.rst" -not -name "license.txt" -printf "%p " |\
|
|
8 |
sed "s/.rst//g")
|
9 | 9 |
|
10 | 10 |
%:
|
11 | 11 |
dh $@ --buildsystem=pybuild --with=python2,python3
|
12 | 12 |
|
13 | 13 |
override_dh_installdocs:
|
14 | 14 |
set -e; for NAME in $(DOCS); do \
|
15 | |
rst2html --cloak-email-addresses --no-toc-backlinks "docs/$$NAME.txt" \
|
|
15 |
rst2html --cloak-email-addresses --no-toc-backlinks "docs/$$NAME.rst" \
|
16 | 16 |
> "$(CURDIR)/debian/python-pastedeploy/usr/share/doc/python-pastedeploy/docs/$$NAME.html"; \
|
17 | 17 |
done
|
18 | 18 |
dh_installdocs
|