From af0d2780d9966d56b8d9de46323f82c0c175b6d1 Mon Sep 17 00:00:00 2001 From: hal9 Date: Sun, 7 Apr 2002 05:31:42 +0000 Subject: [PATCH] Add 'dok-release' target: -Set doc entities to VERSION and CODE_STATUS during make. -Set doc conditional content flags (stable vs non-stable). A separate target for the time being but needs to be incorporated into dok build at some point. -Filter out a spurious ^G from new man page > html converion in man2html. --- GNUmakefile.in | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index a234de61..ee5fc93e 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -1,6 +1,6 @@ # Note: Makefile is built automatically from Makefile.in # -# $Id: GNUmakefile.in,v 1.65 2002/04/06 05:16:39 hal9 Exp $ +# $Id: GNUmakefile.in,v 1.66 2002/04/06 20:28:21 jongfoster Exp $ # # Written by and Copyright (C) 2001 the SourceForge # Privoxy team. http://www.privoxy.org/ @@ -578,8 +578,11 @@ redhat-dok: doc/source/ldpOK.dsl man2html man2html: mkdir -p doc/webserver/man-page ifneq ($(MAN2HTML),false) - $(MAN2HTML) privoxy.1 |grep -v "^Content-type" > doc/webserver/man-page/privoxy-man-page.html - $(PERL) -pi -e 's///; s//man2html/' doc/webserver/man-page/privoxy-man-page.html + $(MAN2HTML) privoxy.1 |grep -v "^Content-type" > tmp.html + $(PERL) -pi -e 's///; s//man2html/' tmp.html + $(PERL) -pi -e 's/(<\/HEAD>)/<\/HEAD>/' tmp.html +# Get rid of spurious  from converion. (How to do this with perl?) + $(SED) -e 's///g' tmp.html > doc/webserver/man-page/privoxy-man-page.html && rm -f tmp.html else $(MAKE) groff2html endif @@ -609,6 +612,26 @@ man: doc/source/ldpOK.dsl # kludge to force recreation on next run. Rodgrigo? @rm -f doc/source/ldpOK.dsl +# Set doc entities for VERSION and CODE_STATUS. Toggle content +# exceptions accordingly. When 'make dok' gets stable, this +# needs to go before any doc building (doh). +make dok-release: + @$(ECHO) Setting doc version and status to $(VERSION), $(CODE_STATUS) + @$(PERL) -pi -e 's///;\ + s///' \ + doc/source/*sgml +ifeq ($(CODE_STATUS),stable) + @$(ECHO) Setting docs to stable $(VERSION) + @$(PERL) -pi -e 's///;\ + s///' \ + doc/source/*sgml +else + @$(ECHO) Setting docs to not stable $(VERSION) + @$(PERL) -pi -e 's///;\ + s///' \ + doc/source/*sgml +endif + ############################################################################# # # Webserver @@ -750,6 +773,13 @@ install: all ## end: # $Log: GNUmakefile.in,v $ +# Revision 1.66 2002/04/06 20:28:21 jongfoster +# Prettifying groff2html. +# Using GNU Make's conditional makefile feature rather than shell "if"s. +# (The shell "if"s were hiding errors) +# "perl" -> "$(PERL)" +# Spaces->tabs in a couple of places. +# # Revision 1.65 2002/04/06 05:16:39 hal9 # -Add 'authors' and 'man' targets for AUTHORS and man-page (WIP). # -Both of these will soon be generated files. -- 2.39.2