Skip to content

Commit 08504fc

Browse files
authored
Merge pull request #3006 from petterreinholdtsen/man-component-utf-8
Pass generated component man pages through preconv for UTF-8 support.
2 parents 5dde589 + 1130c9b commit 08504fc

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

debian/control.top.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Build-Depends:
1313
docbook-xsl,
1414
asciidoc,
1515
ghostscript,
16+
groff-base,
1617
imagemagick,
1718
asciidoc-dblatex,
1819
autoconf,

src/hal/components/Submakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ obj-m += $(patsubst hal/drivers/%.comp, %.o, $(patsubst hal/components/%.comp, %
3232
$(COMP_MANPAGES): ../docs/man/man9/%.9: hal/components/%.comp ../bin/halcompile
3333
$(ECHO) Making halcompile manpage $(notdir $@)
3434
@mkdir -p $(dir $@)
35-
$(Q)../bin/halcompile -U --document -o $@ $<
35+
$(Q)../bin/halcompile -U --document -o $@.new $< && preconv -r < $@.new > $@
36+
$(RM) $@.new
3637

3738
$(COMP_DRIVER_MANPAGES): ../docs/man/man9/%.9: hal/drivers/%.comp ../bin/halcompile
3839
$(ECHO) Making halcompile manpage $(notdir $@)

src/hal/utils/halcompile.g

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ def document(filename, outfilename):
886886
if personality: has_personality = True
887887
if isinstance(array, tuple): has_personality = True
888888

889-
print("""
889+
print(""".\\" -*- mode: troff; coding: utf-8 -*-
890890
.\\"*******************************************************************
891891
.\\"
892892
.\\" This file was extracted from %s using halcompile.g.

0 commit comments

Comments
 (0)