build: fix for text documentation generation

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
Kevin Shanahan 2013-03-20 10:41:43 +10:30
parent f35f89d4eb
commit 854b4bb552

View File

@ -373,6 +373,7 @@ quiet_cmd_man2txt = ' MAN2TXT $@'
cmd_man2txt = \
$(GROFF) -man -Tascii $< | cat -v | \
sed -e 's/\^\[\[\([0-9]\)\{1,2\}[a-z]//g' \
-e 's/.\^H//g' \
-e 's/$$/'`printf \\\r`'/' > $(@D)/.$(@F).tmp && \
mv $(@D)/.$(@F).tmp $@