Name Date Size #Lines LOC

..--

READMEH A D09-Jul-20241.1 KiB3924

ccformatH A D09-Jul-20245.9 KiB20853

check-double-ccH A D09-Jul-2024244 92

check-double-historyH A D09-Jul-2024182 82

check-double-install-proto-textH A D09-Jul-2024270 82

check-double-proto-htmlH A D09-Jul-2024196 82

check-postfix-filesH A D09-Jul-2024896 3316

check-postlinkH A D09-Jul-20241.6 KiB5834

check-spell-ccH A D09-Jul-2024255 92

check-spell-historyH A D09-Jul-2024233 104

check-spell-install-proto-textH A D09-Jul-2024245 82

check-spell-proto-htmlH A D09-Jul-2024188 82

check-table-protoH A D09-Jul-20241 KiB3317

comment.cH A D09-Jul-2024992 6960

dehtmlH A D09-Jul-2024135 107

deroffH A D09-Jul-202461 85

docparamH A D09-Jul-202420.1 KiB379366

docuseparamH A D09-Jul-2024100 63

doubleH A D09-Jul-2024105 117

enterH A D09-Jul-20243.8 KiB14626

find-doubleH A D09-Jul-2024215 1411

find-fluffH A D09-Jul-202466 85

fixmanH A D09-Jul-20245.5 KiB258176

get_anchors.plH A D09-Jul-2024803 5129

hchangeredH A D09-Jul-2024640 4130

html2readmeH A D09-Jul-2024443 3217

make-relnotesH A D09-Jul-20242.1 KiB8659

make_soho_readmeH A D09-Jul-20241.9 KiB8755

makemanidxH A D09-Jul-20242.2 KiB9957

makepostconfH A D09-Jul-20241.6 KiB6241

makepostconflinksH A D09-Jul-2024712 3019

makereadmeH A D09-Jul-2024189 148

man2htmlH A D09-Jul-2024998 5038

mandoubleH A D09-Jul-202479 85

manlintH A D09-Jul-20242.3 KiB166159

manlint.stopH A D09-Jul-20248.4 KiB114113

mansectH A D09-Jul-20242.8 KiB12682

manspellH A D09-Jul-2024103 85

missing-proxy-read-mapsH A D09-Jul-20242.2 KiB5735

postconf2htmlH A D09-Jul-20242.3 KiB10052

postconf2manH A D09-Jul-20242.8 KiB9660

postconffixH A D09-Jul-20241.3 KiB7329

postlinkH A D09-Jul-2024108.8 KiB1,2801,169

postlink.sedH A D09-Jul-202447.3 KiB604556

readme2htmlH A D09-Jul-2024599 3722

specmissH A D09-Jul-2024520 2816

spellH A D09-Jul-2024140 117

spelldiffH A D09-Jul-2024303 2417

srctomanH A D09-Jul-20244.4 KiB215125

useparamH A D09-Jul-202420 KiB369356

user2varH A D09-Jul-2024225 144

var2userH A D09-Jul-2024222 144

xpostconfH A D09-Jul-20243.2 KiB15491

xpostdefH A D09-Jul-20242.7 KiB12282

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

html2readme

1#!/bin/sh
2
3HTML2TEXT="html2text -ascii -style pretty -rcfile html2text.rc"
4
5#case $# in
6# 0) $HTML2TEXT;;
7# *) for file
8#    do
9#        cat <<EOF | fmt
10#[hyperlinked version: www.postfix.org/$file]
11#EOF
12#         $HTML2TEXT $file
13#    done;;
14#esac | sed '
15
16$HTML2TEXT "$@" | sed '
17:top
18/ -$/ {
19	N
20	s/ -\n  o/ -o/
21	b top
22}
23/^  \*$/ {
24	N
25	s/\*\n    /* /
26	b top
27}
28' | awk '
29/^$/ && prev_len == 0 { next }
30		      { print; prev_len = length }
31'
32

make_soho_readme

1#!/bin/sh
2
3cat <<'EOF'
4<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
5        "http://www.w3.org/TR/html4/loose.dtd">
6
7<html>
8
9<head>
10
11<title>Postfix Small/Home Office Hints and Tips</title>
12
13<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
14<link rel='stylesheet' type='text/css' href='postfix-doc.css'>
15
16</head>
17
18<body>
19
20<h1><img src="postfix-logo.jpg" width="203" height="98" ALT="">Postfix Small/Home Office Hints and Tips</h1>
21
22<hr>
23
24<h2>Overview</h2>
25
26<p> This document combines hints and tips for "small office/home
27office" applications into one document so that they are easier to
28find. The text describes the mail sending side only. If your machine
29does not receive mail directly (i.e. it does not have its own
30Internet domain name and its own fixed IP address), then you will
31need a solution such as "fetchmail", which is outside the scope of
32the Postfix documentation.  </p>
33
34<ul>
35
36<li> <p> Selected topics from the STANDARD_CONFIGURATION_README document: </p>
37
38<ul>
39
40<li><a href="#stand_alone">Postfix on a stand-alone Internet host</a>
41
42<li><a href="#fantasy">Postfix on hosts without a real
43Internet hostname</a>
44
45</ul>
46
47<p> Selected topics from the SASL_README document: </p>
48
49<ul>
50
51<li><a href="#client_sasl_enable">Enabling SASL authentication in the
52Postfix SMTP client</a></li>
53
54<li><a href="#client_sasl_sender">Configuring Sender-Dependent SASL
55authentication </a></li>
56
57</ul>
58
59</ul>
60
61<p> See the SASL_README and STANDARD_CONFIGURATION_README documents for
62further information on these topics. </p>
63
64EOF
65
66sed -n '/^<h2><a name="stand_alone">/,${
67        /^<h2><a name="null_client">/q
68        p
69}' STANDARD_CONFIGURATION_README.html
70
71sed -n '/^<h2><a name="fantasy">/,${
72	/^<\/body>/q
73	p
74}' STANDARD_CONFIGURATION_README.html
75
76sed -n '/^<h3><a name="client_sasl_enable"/,${
77	/^<h3><a name="client_sasl_policy"/q
78	s/h3>/h2>/g
79	p
80}' SASL_README.html
81
82cat <<'EOF'
83</body>
84
85</html>
86EOF
87

makereadme

1#!/bin/sh
2
3sed '
4	s/<\/*table[^>]*>//g
5	s/<\/th[^>]*>//g
6	s/<\/td[^>]*>//g
7	s/"\([A-Z0-9_]*\)\.html">/&\1:/
8	s/All main.cf parameters/postconf(5): &/
9	/All Postfix manual pages/d
10' "$@"
11
12
13
14

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=utf-8">
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