1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 15_mansection8.dpatch by Roland Rosenfeld <roland@debian.org>
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Move man page from man section 1 to man section 8.
8 diff -urNad privoxy~/doc/source/privoxy-man-page.sgml privoxy/doc/source/privoxy-man-page.sgml
9 --- privoxy~/doc/source/privoxy-man-page.sgml 2006-02-11 23:44:40.000000000 +0100
10 +++ privoxy/doc/source/privoxy-man-page.sgml 2006-02-11 23:44:40.000000000 +0100
14 <refentrytitle>privoxy</refentrytitle>
15 - <manvolnum>1</manvolnum>
16 + <manvolnum>8</manvolnum>
18 Privoxy &p-version;<![%p-not-stable;[ &p-status;]]>
20 diff -urNad privoxy~/GNUmakefile.in privoxy/GNUmakefile.in
21 --- privoxy~/GNUmakefile.in 2006-02-11 23:44:25.000000000 +0100
22 +++ privoxy/GNUmakefile.in 2006-02-11 23:44:40.000000000 +0100
24 `find doc/text/ -type f | grep -v "CVS" | grep -v "\.\#" | grep -v ".*~" | grep -v ".cvsignore" | grep -v "TAGS"` \
25 `find doc/webserver/ -name "*.html" | grep -v "\(webserver\|team\)\/index\.html"` \
26 `find doc/webserver/ -name "*.css"` \
31 #############################################################################
33 $(RM) /etc/init.d/privoxy
34 $(RM) /usr/sbin/privoxy
35 $(RM) /usr/sbin/rcprivoxy
36 - $(RM) /usr/share/man/man1/privoxy.1.gz
37 + $(RM) /usr/share/man/man1/privoxy.8.gz
39 #############################################################################
40 # generic distribution
42 $(RM) doc/man/* doc/webserver/man-page/*.html
43 ifneq ($(MAN2HTML),false)
44 $(ECHO) "<html><head><title>Privoxy Man page</title><link rel=\"stylesheet\" type=\"text/css\" href=\"../p_web.css\"></head><body><H2>NAME</H2>" > doc/webserver/man-page/privoxy-man-page.html
45 - man ./privoxy.1 | $(MAN2HTML) -bare >> doc/webserver/man-page/privoxy-man-page.html
46 + man ./privoxy.8 | $(MAN2HTML) -bare >> doc/webserver/man-page/privoxy-man-page.html
47 $(ECHO) "</body></html>" >> doc/webserver/man-page/privoxy-man-page.html
52 mkdir -p doc/source/temp && cd doc/source/temp && $(RM) * ;\
53 nsgmls ../privoxy-man-page.sgml | sgmlspl ../../../utils/docbook2man/docbook2man-spec.pl &&\
54 - perl -pi.bak -e 's/ <URL:.*>//; s/\[ /\[/g' privoxy.1 ;\
55 - $(DB) ../privoxy-man-page.sgml && $(MV) -f privoxy.1 ../../../privoxy.1
56 + perl -pi.bak -e 's/ <URL:.*>//; s/\[ /\[/g' privoxy.8 ;\
57 + $(DB) ../privoxy-man-page.sgml && $(MV) -f privoxy.8 ../../../privoxy.8
59 # For those with man2html ala RH7s.
61 mkdir -p doc/webserver/man-page
62 ifneq ($(MAN2HTML),false)
63 - $(MAN2HTML) privoxy.1 |grep -v "^Content-type" > tmp.html
64 + $(MAN2HTML) privoxy.8 |grep -v "^Content-type" > tmp.html
65 $(PERL) -pi.bak -e 's/<A .*Contents<\/A>//; s/<A .*man2html<\/A>/man2html/' tmp.html
66 $(PERL) -pi.bak -e 's/(<\/HEAD>)/<LINK REL=\"STYLESHEET\" TYPE=\"text\/css\" HREF=\"..\/p_doc.css\"><\/HEAD>/' tmp.html
67 # Twice because my version of man2html is pulling in commas and periods in URLs.
70 # Otherwise we get plain groff conversion.
72 - $(G2H_CMD) ./privoxy.1 | $(SED) -e 's@</head>@<link REL="STYLESHEET" TYPE="text/css" HREF="../p_doc.css"></head>@' > doc/webserver/man-page/privoxy-man-page.html
73 + $(G2H_CMD) ./privoxy.8 | $(SED) -e 's@</head>@<link REL="STYLESHEET" TYPE="text/css" HREF="../p_doc.css"></head>@' > doc/webserver/man-page/privoxy-man-page.html
76 # readme page and INSTALL file
78 $(INSTALL) $(INSTALL_T) $(DOK_WEB)/p_doc.css $$DOC;\
80 @# Not all platforms support gzipped man pages.
81 - @$(ECHO) Installing man page to $(MAN_DEST)/privoxy.1
82 - -$(INSTALL) $(INSTALL_T) privoxy.1 $(MAN_DEST)/privoxy.1
83 + @$(ECHO) Installing man page to $(MAN_DEST)/privoxy.8
84 + -$(INSTALL) $(INSTALL_T) privoxy.8 $(MAN_DEST)/privoxy.8
86 @# Change the config file default directories according to the configured ones
87 @$(ECHO) Rewriting config for this installation
91 @$(ECHO) Removing $(PROGRAM) docs
92 - -$(RM) $(MAN_DEST)/privoxy.1*
93 + -$(RM) $(MAN_DEST)/privoxy.8*
94 -$(RM) -r $(DOC_DEST) || $(RM) -r $(prefix)/doc/privoxy
96 @# Log and jarfile and pidfile