Commit d1fdc536 authored by Danir Tlepov's avatar Danir Tlepov

TASK [#CRM] added docx build

parent 3e0be844
......@@ -11,10 +11,11 @@ user-manual.xml: user-manual.md
@echo Creating full XML image
ifdef VCSREV
pandoc $(DOCBOOKOPTS) user-manual.md \
| xsltproc --encoding utf8 \
--stringparam vcs.revision $(VCSREV) \
--stringparam vcs.changedby "$(VCSCHANGEDBY)" \
--xinclude conf/vcs/insert-revision-and-build-date.xsl - > user-manual.xml
# | xsltproc --encoding utf8 \
# --stringparam vcs.revision $(VCSREV) \
# --stringparam vcs.changedby "$(VCSCHANGEDBY)" \
# --xinclude conf/vcs/insert-revision-and-build-date.xsl
- > user-manual.xml
else
pandoc $(DOCBOOKOPTS) user-manual.md -o user-manual.xml
#SP_ENCODING="UTF-8" xmllint --encode utf8 --xinclude src/index.xml > user-manual.xml
......@@ -40,6 +41,10 @@ pdf: user-manual.xml
dblatex -b xetex -o bin/user-manual.pdf user-manual.xml
rm -f user-manual.xml
docx: user-manual.md
mkdir -p bin/docx
pandoc -s -S -o bin/docx/user-manual.docx user-manual.md
clean:
@echo Remove all
rm -rf *.xml *.md bin/*
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment