NameDateSize

..12-Oct-201542

ccformatH A D23-Jun-20095.9 KiB

check-postlinkH A D23-Jun-20091.8 KiB

dehtmlH A D23-Jun-2009135

docparamH A D23-Jun-200920.1 KiB

docuseparamH A D23-Jun-2009100

doubleH A D23-Jun-200968

enterH A D23-Jun-20093.8 KiB

find-fluffH A D23-Jun-200966

fixmanH A D23-Jun-20095.2 KiB

get_anchors.plH A D19-Feb-2012803

hchangeredH A D23-Jun-2009640

html2readmeH A D23-Jun-2009397

make-relnotesH A D17-Jun-20102 KiB

make_soho_readmeH A D17-Jun-20101.8 KiB

makemanidxH A D23-Jun-20092.1 KiB

makepostconfH A D23-Jun-20091.6 KiB

makepostconflinksH A D23-Jun-2009712

makereadmeH A D23-Jun-2009189

man2htmlH A D23-Jun-2009805

mandoubleH A D23-Jun-200979

manlintH A D23-Jun-20092.3 KiB

manlint.stopH A D23-Jun-20098.4 KiB

mansectH A D23-Jun-20092.8 KiB

manspellH A D23-Jun-2009101

postconf2htmlH A D23-Jun-20092.1 KiB

postconf2manH A D23-Jun-20092.4 KiB

postconffixH A D23-Jun-20091.3 KiB

postlinkH A D31-Jul-201189.2 KiB

postlink.sedH A D23-Jun-200947.3 KiB

READMEH A D23-Jun-20091.1 KiB

readme2htmlH A D23-Jun-2009602

specmissH A D23-Jun-2009520

spellH A D23-Jun-2009114

srctomanH A D23-Jun-20094.3 KiB

useparamH A D23-Jun-200920 KiB

user2varH A D23-Jun-2009225

var2userH A D23-Jun-2009222

xpostconfH A D23-Jun-20093.2 KiB

xpostdefH A D23-Jun-20092.7 KiB

README

1Scripts and tools to format embedded manual pages, or to format C
2source code files. Each has an embedded man page in the source.
3
4ccformat 	c code formatter
5		usage: ccformat (copy stdin to stdout)
6		usage: ccformat files... (format files in place)
7
8enter		set project-specific environment
9		usage: enter project-name
10
11mansect		extract manual page section from source file
12		usage: mansect file.suffix
13		usage: mansect -type file
14
15srctoman	extract man page from source file
16		usage: srctoman file.suffix
17		usage: srctoman -type file
18
19man2html	quick script to htmlize nroff -man output
20
21postlink	quick script to hyperlink HTML text
22
23See the proto/README file for the following tools that generate
24HTML and ASCII forms of README documents and of some manual pages.
25
26fixman		quick hack to patch postconf.proto text into C sorce
27
28makereadme	create README_FILES table of contents (AAAREADME)
29
30html2readme	convert HTML to README file
31
32postconf2html	postconf.proto -> postconf.5.html
33
34postconf2man	postconf.proto -> postconf.5 (nroff input)
35
36xpostconf	extract selected sections from postconf.proto
37
38xpostdef	re-compute the defaults in postconf.proto
39

readme2html

1#!/bin/sh
2
3# Crude script to convert plain READMEs to HTML
4
5echo '<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
6        "http://www.w3.org/TR/html4/loose.dtd">
7
8<html>
9
10<head>
11
12<title>Title Here</title>
13
14<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
15
16</head>
17
18<body>
19
20<h1>Title Here</h1>'
21
22sed '
23	s/&/\&amp;/g
24	s/</\&lt;/g
25	s/>/\&gt;/g
26' "$@" | awk '
27/^====+$/ { print "<h2>" line "</h2>"; line = ""; getline; next }
28NF == 0   { print line; print $0; print "<p>"; line = $0; next }
29	  { print line; line = $0 }
30END	  { print line }
31'
32
33echo '
34</body>
35
36</html>'
37