/sbin
)
+FIND_PROGRAM(XMLLINT_EXECUTABLE
+ NAMES
+ xmllint
+ PATHS
+ ${CYGWIN_INSTALL_PATH}/bin
+ /bin
+ /usr/bin
+ /usr/local/bin
+ /sbin
+)
+
# Make sure we don't get language specific quotes
set( A2X_EXECUTABLE LC_ALL=C ${A2X_EXECUTABLE} )
)
ENDMACRO()
+# Convert an AsciiDoc document to a Docbook chapter
+MACRO( ASCIIDOC2CHAPTER _output _asciidocsource _conffile )
+ GET_FILENAME_COMPONENT( _source_base_name ${_asciidocsource} NAME_WE )
+ set( A2X_HTML_OPTS --stylesheet=ws.css )
+ ADD_CUSTOM_COMMAND(
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+ OUTPUT
+ ${_output}
+ COMMAND ${A2X_EXECUTABLE}
+ --verbose
+ --destination-dir=${CMAKE_CURRENT_BINARY_DIR}
+ --asciidoc-opts="--conf-file=${_conffile}"
+ --no-xmllint
+ --format=docbook --doctype=book
+ ${A2X_HTML_OPTS}
+ ${_asciidocsource}
+ COMMAND mv
+ ${CMAKE_CURRENT_BINARY_DIR}/${_source_base_name}.xml
+ ${CMAKE_CURRENT_BINARY_DIR}/${_source_base_name}.dbk
+ COMMAND ${XMLLINT}
+ --xpath chapter
+ ${CMAKE_CURRENT_BINARY_DIR}/${_source_base_name}.dbk
+ > ${CMAKE_CURRENT_BINARY_DIR}/${_output}
+ DEPENDS
+ ${_asciidocsources}
+ ${_conffile}
+ )
+ENDMACRO()
ws.css
)
+set(WSDG_ASCIIDOC_FILES
+ wsdg_src/WSDG_chapter_sources.asciidoc
+)
+
set(WSDG_GRAPHICS
wsdg_graphics/ws-capture-sync.dia
wsdg_graphics/ws-capture-sync.png
WSDG_SOURCE
)
+ASCIIDOC2CHAPTER(WSDG_ASCIIDOC_FILES)
XML2HTML(
wsdg.validated
wsdg_html/index.html
@false
endif
+# Convert an AsciiDoc document to a Docbook chapter
+.asciidoc.xml:
+ $(A2X) --verbose \
+ --asciidoc-opts="--conf-file=asciidoc.conf" \
+ --no-xmllint \
+ --format=docbook --doctype=book \
+ $<
+ mv $*.xml $*.dbk
+ xmllint --xpath chapter $*.dbk > $@
if HAVE_XSLTPROC
ALL_TARGETS=git_version_check wsug wsdg release_notes
news: release-notes.txt
cp release-notes.txt ../NEWS
+# Apparently we can only run one instance of a2x at a time.
+.NOTPARALLEL: release-notes-us.pdf release-notes-a4.pdf
# create pdf file, portrait pages on US letter paper
release-notes-us.pdf: $(RELEASE_NOTES_SOURCE) custom_layer_pdf.xsl
@ echo --- RELEASE NOTES - PDF US LETTER PAPER ---
.SUFFIXES: .fo .pdf
+# Convert an AsciiDoc document to a Docbook chapter
+.asciidoc.xml:
+ $(A2X) --verbose \
+ --asciidoc-opts="--conf-file=asciidoc.conf" \
+ --no-xmllint \
+ --format=docbook --doctype=book \
+ $<
+ mv $*.xml $*.dbk
+ xmllint --xpath chapter $*.dbk > $@
+
+.SUFFIXES: .asciidoc .xml
+
+
# On every build, record the working copy revision string
# in git_version.xml (if the svn version has changed).
# This is done during nmake "preprocessing" so that it's done *before*