btrfs-progs: doc: autoformat user-supplied arguments by sed

Convert all values enclosed between <...> to italic before it goes to
asciidoc processor.

Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
David Sterba 2014-05-19 17:38:03 +02:00
parent 7f7c13f486
commit aaeae23458

View File

@ -85,10 +85,11 @@ clean:
%.8 : %.xml %.8 : %.xml
$(QUIET_XMLTO)$(RM) $@ && \ $(QUIET_XMLTO)$(RM) $@ && \
$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $< $(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
%.xml : %.txt asciidoc.conf %.xml : %.txt asciidoc.conf
$(QUIET_ASCIIDOC)$(RM) $@+ $@ && \ $(QUIET_ASCIIDOC)$(RM) $@.tmp[12] $@ && \
sed -e "s/\(<[^>]\+>\)/'\1'/g" < $< > $@.tmp1 && \
$(ASCIIDOC) -b docbook -d manpage -f asciidoc.conf \ $(ASCIIDOC) -b docbook -d manpage -f asciidoc.conf \
$(ASCIIDOC_EXTRA) -abtrfs_version=$(BTRFS_VERSION) \ $(ASCIIDOC_EXTRA) -abtrfs_version=$(BTRFS_VERSION) \
-o $@+ $< && \ -o $@.tmp2 $@.tmp1 && \
mv $@+ $@ mv $@.tmp2 $@ && \
rm -f -- $@.tmp1