Module Name: src
Committed By: mrg
Date: Thu Jul 11 08:32:39 UTC 2013
Modified Files:
src/libexec/httpd: Makefile
Log Message:
merge parts of the release Makefile back in; unused by the netbsd build.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/libexec/httpd/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/httpd/Makefile
diff -u src/libexec/httpd/Makefile:1.12 src/libexec/httpd/Makefile:1.13
--- src/libexec/httpd/Makefile:1.12 Mon Sep 20 23:11:38 2010
+++ src/libexec/httpd/Makefile Thu Jul 11 08:32:39 2013
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2010/09/20 23:11:38 mrg Exp $
+# $NetBSD: Makefile,v 1.13 2013/07/11 08:32:39 mrg Exp $
#
# $eterna: Makefile,v 1.30 2010/07/11 00:34:27 mrg Exp $
#
@@ -44,4 +44,30 @@ COPTS+= -DNO_SSL_SUPPORT
.endif
+#
+# Build release things.
+#
+NROFF?= nroff
+
+PREHTMLFROB= sed \
+ -e 's/&/\&/' \
+ -e 's/</\</' \
+ -e 's/>/\>/'
+
+HTMLFROB= sed \
+ -e 's/\([MC] "[^"]*\)<dd>$$/\1<b>"<\/b><dd>/' \
+ -e 's/'"''"'/\”/' \
+ -e 's/""/\“/' \
+ -e 's/<a href="\.\.\/html[^>]*>\(.*\)<\/a>/\1/'
+
+TXTFROB= col -b
+
+bozohttpd.8.html: bozohttpd.8
+ $(PREHTMLFROB) $> | $(NROFF) -mdoc2html | $(HTMLFROB) > $@
+
+bozohttpd.8.txt: bozohttpd.8
+ $(NROFF) -mdoc -Tascii $> | $(TXTFROB) > $@
+
+CLEANFILES+= bozohttpd.8.html bozohttpd.8.txt
+
.include <bsd.prog.mk>