summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2014-05-19 17:38:03 +0200
committerDavid Sterba <dsterba@suse.cz>2014-05-19 17:53:18 +0200
commitaaeae23458aa76a68f5e1b1fb8bf551b04f57f2e (patch)
treea3be43f284d5d19a03dcc6118c5dffe322e676ba /Documentation
parent7f7c13f48696e1d26765f43b37711968837ffc5b (diff)
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>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile
index e22f5bca..45299bb2 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -85,10 +85,11 @@ clean:
%.8 : %.xml
$(QUIET_XMLTO)$(RM) $@ && \
$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
-
%.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_EXTRA) -abtrfs_version=$(BTRFS_VERSION) \
- -o $@+ $< && \
- mv $@+ $@
+ -o $@.tmp2 $@.tmp1 && \
+ mv $@.tmp2 $@ && \
+ rm -f -- $@.tmp1