3 # Generates mh-chart.man from other .man files that have a SYNOPSIS
9 .TH MH-CHART %manext7% "%nmhdate%" MH.6.8 [%nmhversion%]
14 mh-chart \- Chart of nmh Commands
19 for i in $nmhmandir/*.man; do
22 *) if grep '^\.ad' "$i" >/dev/null; then
23 #### Extract lines from just after .SH SYNOPSIS to just before .ad.
24 #### Filter out the "typical usage:" section in pick.man.
25 awk '/.SH SYNOPSIS/,/^(\.ad|typical usage:)/ {
26 if ($0 !~ /^(\.SH SYNOPSIS|\.na|\.ad|typical usage:)/) print