Skip to content

Commit

Permalink
Fix mandoc invocation to not produce garbage
Browse files Browse the repository at this point in the history
Bizarrely, mandoc doesn't default to outputting man - the default is
"locale", which is either ASCII or UTF-8 (by locale).  This output is
supposed to be some kind of plain-text, but it's formatted so strangely
I'm not sure what the purpose is.  Regardless, it doesn't go well to
feed this into man(1).

Tell mandoc explicitly to produce man pages.

Signed-off-by: Robbie Harwood <rharwood@redhat.com>
  • Loading branch information
frozencemetery committed Jul 7, 2022
1 parent 926782c commit 102c3d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Make.rules
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ define substitute-version =
endef

%.1 : %.1.mdoc
@mandoc -man -Ios=Linux $^ > $@
@mandoc -man -T man -Ios=Linux $^ > $@

% : %.in
@$(call substitute-version,$<,$@)
Expand Down

0 comments on commit 102c3d1

Please sign in to comment.