• Home
  • History
  • Annotate
  • only in this directory
NameDateSize

..20-Mar-201452

ccformatH A D13-Feb-20145.9 KiB

check-postlinkH A D03-May-20121.8 KiB

dehtmlH A D03-May-2012135

docparamH A D03-May-201220.1 KiB

docuseparamH A D03-May-2012100

doubleH A D03-May-201281

enterH A D03-May-20123.8 KiB

find-fluffH A D03-May-201266

fixmanH A D03-May-20125.2 KiB

get_anchors.plH A D03-May-2012809

hchangeredH A D03-May-2012640

html2readmeH A D03-May-2012397

make-relnotesH A D03-May-20122 KiB

make_soho_readmeH A D03-May-20121.8 KiB

makemanidxH A D03-May-20122.1 KiB

makepostconfH A D03-May-20121.6 KiB

makepostconflinksH A D03-May-2012712

makereadmeH A D03-May-2012189

man2htmlH A D13-Feb-20141.4 KiB

mandoubleH A D03-May-201279

manlintH A D03-May-20122.3 KiB

manlint.stopH A D03-May-20128.4 KiB

mansectH A D03-May-20122.8 KiB

manspellH A D03-May-2012101

postconf2htmlH A D03-May-20122.1 KiB

postconf2manH A D13-Feb-20142.5 KiB

postconffixH A D03-May-20121.3 KiB

postlinkH A D13-Feb-201495.7 KiB

postlink.sedH A D03-May-201247.3 KiB

READMEH A D03-May-20121.1 KiB

readme2htmlH A D03-May-2012602

specmissH A D03-May-2012520

spellH A D03-May-2012114

srctomanH A D03-May-20124.3 KiB

useparamH A D03-May-201220 KiB

user2varH A D03-May-2012225

var2userH A D03-May-2012222

xpostconfH A D03-May-20123.2 KiB

xpostdefH A D03-May-20122.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