Browse Source

Work around failings in help2man's option formatting.

Douglas William Thrift 13 years ago
parent
commit
0f0b6e1eee
2 changed files with 15 additions and 7 deletions
  1. 1 1
      GNUmakefile.in
  2. 14 6
      man1/dtpstree.1

+ 1 - 1
GNUmakefile.in

@@ -73,7 +73,7 @@ ifneq ($(REALPATH),:)
 man: $(srcdir)/man1/dtpstree.1
 
 $(srcdir)/man1/%.1: % %.man
-	$(HELP2MAN) -I $(filter %.man,$^) -Nn '$(shell sed -e '$$ s|^// ||p;d' $(srcdir)/$<.cpp)' -o $@ -v -Vs $(shell $(REALPATH) $<)
+	$(HELP2MAN) -I $(filter %.man,$^) -Nn '$(shell sed -e '$$ s|^// ||p;d' $(srcdir)/$<.cpp)' -v -Vs $(shell $(REALPATH) $<) | sed -e 's/^\\fB\\-\([a-zA-Z]\)\([A-Z][A-Z]*\)\\fR/\\fB\\-\1\\fI\2\\fR/;s/^\\fB\\-\([a-zA-Z]\)\[\([A-Z][A-Z]*\)\]\\fR/\\fB\\-\1\\fR[\\fI\2\\fR]/' > $@
 endif
 endif
 

+ 14 - 6
man1/dtpstree.1

@@ -1,5 +1,5 @@
-.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.38.2.
-.TH DTPSTREE "1" "August 2010" "dtpstree 1.0.3" "User Commands"
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.39.1.
+.TH DTPSTREE "1" "March 2011" "dtpstree 1.1.0" "User Commands"
 .SH NAME
 dtpstree \- display a tree of processes
 .SH SYNOPSIS
@@ -22,16 +22,20 @@ use ASCII line drawing characters
 \fB\-c\fR, \fB\-\-no\-compact\fR
 don't compact identical subtrees
 .TP
+\fB\-g\fIPATTERN\fR, \fB\-\-glob\fR=\fIPATTERN\fR
+show only trees rooted at processes with names
+that match the shell pattern PATTERN
+.TP
+\fB\-G\fR, \fB\-\-vt100\fR
+use VT100 line drawing characters
+.TP
 \fB\-h\fR, \fB\-\-help\fR
 show this help message and exit
 .TP
-\fB\-H[PID]\fR, \fB\-\-highlight\fR[=\fIPID\fR]
+\fB\-H\fR[\fIPID\fR], \fB\-\-highlight\fR[=\fIPID\fR]
 highlight the current process (or PID) and its
 ancestors
 .TP
-\fB\-G\fR, \fB\-\-vt100\fR
-use VT100 line drawing characters
-.TP
 \fB\-k\fR, \fB\-\-show\-kernel\fR
 show kernel processes
 .TP
@@ -44,6 +48,10 @@ sort output by PID
 \fB\-p\fR, \fB\-\-show\-pids\fR
 show PIDs; implies \fB\-c\fR
 .TP
+\fB\-r\fIPATTERN\fR, \fB\-\-regex\fR=\fIPATTERN\fR
+show only trees rooted at processes with names
+that match the regular expression PATTERN
+.TP
 \fB\-t\fR, \fB\-\-show\-titles\fR
 show process titles
 .TP