Skip to content
Snippets Groups Projects
Commit 6d9a8f16 authored by Scott Kitterman's avatar Scott Kitterman
Browse files

debian/rules changes to add make-faq rule to pre-generate FAQ.

parent ffc02d2b
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ Section: python
Priority: optional
Maintainer: Matthias Klose <doko@debian.org>
Uploaders: Scott Kitterman <scott@kitterman.com>, Piotr Ożarowski <piotr@debian.org>, Barry Warsaw <barry@debian.org>
Build-Depends: debhelper (>= 8~), python-docutils (>= 0.4-3), debiandoc-sgml
Build-Depends: debhelper (>= 8~), debiandoc-sgml
Standards-Version: 3.9.5
Homepage: http://www.python.org/
Vcs-Bzr: http://alioth.debian.org/anonscm/bzr/pkg-python/python-defaults-debian
......
......@@ -3,7 +3,7 @@ Section: python
Priority: optional
Maintainer: Matthias Klose <doko@debian.org>
Uploaders: Scott Kitterman <scott@kitterman.com>, Piotr Ożarowski <piotr@debian.org>, Barry Warsaw <barry@debian.org>
Build-Depends: debhelper (>= 8~), python-docutils (>= 0.4-3), debiandoc-sgml
Build-Depends: debhelper (>= 8~), debiandoc-sgml
Standards-Version: 3.9.5
Homepage: http://www.python.org/
Vcs-Bzr: http://alioth.debian.org/anonscm/bzr/pkg-python/python-defaults-debian
......
......@@ -96,6 +96,17 @@ get-faq:
) >> faq/FAQ.ht
rm -f faq/index.ht
make-faq:
set -e; \
cd faq && \
for p in *.ht; do \
p=`basename $$p .ht`; \
echo $(rst2html) $$p.ht $$p.html; \
awk 'NR > 2' $$p.ht > $$p.ht2; \
$(rst2html) $$p.ht2 $$p.html; \
rm -f $$p.ht2; \
done
MANPAGES ?= dh_python2.1 pycompile.1 pyclean.1
%.1: %.rst
......@@ -149,11 +160,7 @@ stamp-install: stamp-build control-file stamp-control
cd faq && \
for p in *.ht; do \
p=`basename $$p .ht`; \
echo $(rst2html) $$p.ht $$p.html; \
awk 'NR > 2' $$p.ht > $$p.ht2; \
$(rst2html) $$p.ht2 $$p.html; \
mv $$p.html ../debian/python/usr/share/doc/python/faq/; \
rm -f $$p.ht2; \
done
mv debian/python/usr/share/doc/python/faq/FAQ.html \
debian/python/usr/share/doc/python/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment