[Privoxy-commits] [privoxy] 04/10: GNUMakefile.in: Add dok-privoxy-tools target
User Git
git at git.privoxy.org
Sat Apr 11 15:04:13 CEST 2026
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit f5cbbfcec2054a9d80772c02c46c2945657d0df5
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Thu Jan 8 09:55:29 2026 +0100
GNUMakefile.in: Add dok-privoxy-tools target
... that creates man pages for the Privoxy tools.
---
GNUmakefile.in | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/GNUmakefile.in b/GNUmakefile.in
index 71f4d549..a58772aa 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -148,6 +148,7 @@ DB_TXT = $(JADEBIN) $(JADECAT) -ihtml -t sgml -D.. -d ldp.dsl\#print
DB2HTML = @DB2HTML@
MAN2HTML = @MAN2HTML@
G2H_CMD = groff -mandoc -Thtml
+POD2MAN_CMD= pod2man
TARGET_OS = @host@
PERL = perl
DOC_DIR = doc/source
@@ -601,8 +602,18 @@ dok-index:
s/__copy/©/' \
doc/webserver/privoxy-index.html && $(RM) doc/webserver/*.bak
+dok-privoxy-tools:
+ cd tools && for privoxy_tool in *.pl; do \
+ echo Generating man page for $${privoxy_tool}; \
+ man_page=$${privoxy_tool%%.pl}.1; \
+ $(POD2MAN_CMD) $${privoxy_tool} > ../man/$${man_page}; \
+ html_man_page=../doc/webserver/man-page/$${man_page##*/}; \
+ html_man_page=$${html_man_page%%.pl}.html; \
+ $(G2H_CMD) ../man/$${man_page} | $(GREP) -v CreationDate > $${html_man_page}; \
+ done
+
# Main documentation target.
-dok: dok-release dok-devel dok-user dok-faq dok-readme dok-webserver dok-authors dok-index
+dok: dok-release dok-devel dok-user dok-faq dok-readme dok-webserver dok-authors dok-index dok-privoxy-tools
@$(ECHO) Documentation created.
## Make AUTHORS file
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list