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