Skip to content

Commit d393e39

Browse files
dumbbellgerhard
authored andcommitted
Makefile: Fix malformed manpages
The generated manpage contains malformed .HP directives: .HP \w'\fBstop\fR\ 'u \fBstop\fR [\fIpid_file\fR] The .HP directive takes one argument, the indentation. Thus, the first line (which is not indented) should be on the next line: .HP \w'\fBstop\fR\ 'u \fBstop\fR [\fIpid_file\fR] Manpages will be converted to mdoc(7) in master so we are sure of the formatting. The DocBook versions will be dropped. This will also simplify the build process. References #1180. [#143563295]
1 parent f3346e8 commit d393e39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ clean-extra-sources:
201201
opt='--stringparam man.indent.verbatims=0' ; \
202202
xsltproc --novalid $(DOCS_DIR)/examples-to-end.xsl $< > $<.tmp && \
203203
xmlto -vv -o $(DOCS_DIR) $$opt man $< 2>&1 | (grep -v '^Note: Writing' || :) && \
204+
awk -F"'u " '/^\.HP / { print $$1; print $$2; next; } { print; }' "$@" > "$@.tmp" && \
205+
mv "$@.tmp" "$@" && \
204206
test -f $@ && \
205207
rm $<.tmp
206208

0 commit comments

Comments
 (0)