Home | History | Annotate | only in /src/external/ibm-public/postfix/dist/mantools
Up to higher level directory
NameDateSize
ccformat18-Mar-20205.9K
check-double-cc23-Dec-2023244
check-double-history23-Dec-2023182
check-double-install-proto-text23-Dec-2023270
check-double-proto-html23-Dec-2023196
check-postconf-undocumented25-Feb-20252.8K
check-postconf-unimplemented10-May-20262.5K
check-postfix-files23-Dec-2023896
check-postlink23-Dec-20231.6K
check-proxy-type-table09-May-20261.8K
check-see-postconf-d-output25-Feb-2025174
check-snapshot-nonprod25-Feb-20251.5K
check-spell-cc23-Dec-2023255
check-spell-history10-May-2026264
check-spell-install-proto-text23-Dec-2023245
check-spell-proto-html10-May-2026201
check-table-proto23-Dec-20231K
comment.c08-Oct-2022992
dehtml10-May-2026171
deroff08-Oct-202261
docparam23-Jun-200920.1K
docuseparam23-Jun-2009100
double14-Feb-2017105
enter23-Jun-20093.8K
find-double08-Oct-2022215
find-fluff23-Jun-200966
fixman25-Feb-20255.5K
get_anchors.pl17-Feb-2012803
hchangered23-Jun-2009640
html2readme14-Feb-2017443
make-relnotes25-Feb-20252.1K
make_soho_readme25-Feb-20251.9K
makemanidx25-Feb-20252.2K
makepostconf23-Jun-20091.6K
makepostconflinks23-Jun-2009712
makereadme23-Jun-2009189
man2html25-Feb-20251.2K
mandouble23-Jun-200979
manlint23-Dec-20232.3K
manlint.stop23-Jun-20098.4K
mansect23-Jun-20092.8K
manspell23-Dec-2023103
missing-proxy-read-maps23-Dec-20232.2K
postconf2html14-Feb-20172.3K
postconf2man10-May-20263.1K
postconffix23-Jun-20091.3K
postlink10-May-2026113.9K
postlink.sed25-Feb-202547.3K
README23-Jun-20091.1K
readme2html25-Feb-2025600
specmiss23-Jun-2009520
spell23-Dec-2023140
spelldiff18-Mar-2020303
srctoman10-May-20264.4K
useparam23-Jun-200920K
user2var23-Jun-2009225
var2user23-Jun-2009222
xpostconf23-Jun-20093.2K
xpostdef23-Jun-20092.7K

README

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

readme2html

      1 #!/bin/sh
      2 
      3 # Crude script to convert plain READMEs to HTML
      4 
      5 echo '<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
      6         "https://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 
     22 sed '
     23 	s/&/\&amp;/g
     24 	s/</\&lt;/g
     25 	s/>/\&gt;/g
     26 ' "$@" | awk '
     27 /^====+$/ { print "<h2>" line "</h2>"; line = ""; getline; next }
     28 NF == 0   { print line; print $0; print "<p>"; line = $0; next }
     29 	  { print line; line = $0 }
     30 END	  { print line }
     31 '
     32 
     33 echo '
     34 </body>
     35 
     36 </html>'
     37