+ $(ECHO) -n $(STABLE) > $(DOC_DIR)/doc_stable.tmp
+
+# Make pdf docs from single page html. Requires htmldoc, see
+# (http://www.easysw.com/htmldoc/). Note: 1.8.20 has a TOC bug.
+# PDF docs are uploaded to webserver as zip archive.
+dok-pdf: dok-shtml
+ @$(ECHO) -n "starting htmldoc version: "; htmldoc --version
+ cd $(UTILS)/ldp_print && $(RM) *html *bak *jpg *tmp *pdf *zip
+ cp -f $(DOC_TMP)/*html ../webserver/images/*jpg $(UTILS)/ldp_print
+ cd $(UTILS)/ldp_print ;\
+ $(PERL) -pi.bak -e 's/\.\.\/images\///; s/(<\/?)SUB/$$1small/i;\
+ s/\.\.\/user-manual\/index\.html/privoxy-user-manual.pdf/;\
+ s/\.\.\/developer-manual\/index\.html/privoxy-developer-manual.pdf/;\
+ s/\.\.\/faq\/index\.html/privoxy-faq.pdf/' *.html ;\
+ for i in developer-manual user-manual faq; do \
+ ./ldp_print privoxy-$$i.html ;\
+ $(ECHO) DONE: privoxy-$$i.pdf ;\
+ done ;\
+ $(MV) *.pdf ../../doc/pdf ;\
+ $(RM) *html *bak *jpg *pdf *zip
+ $(RM) $(DOC_TMP)