cmake: man: use txtfile directly

This helps with warnings:

> [ 94%] Generating manpages/de/man1/awesome.1
> asciidoctor: WARNING: awesome.1.de.txt: line 10: unterminated listing block
> [ 94%] Generating manpages/de/man1/awesome.1.gz
> …
> [ 98%] Built target man
This commit is contained in:
Daniel Hahler 2019-01-04 16:15:44 +01:00
parent 6d2fc5c12b
commit 6be0f39454
1 changed files with 1 additions and 1 deletions

View File

@ -239,7 +239,7 @@ if(GENERATE_MANPAGES)
set(asciilang ${lang}) set(asciilang ${lang})
endif() endif()
add_custom_command( add_custom_command(
COMMAND ${ASCIIDOCTOR_EXECUTABLE} -a lang=${asciilang} -d manpage -b manpage -o ${manfile} - < ${txtfile} COMMAND ${ASCIIDOCTOR_EXECUTABLE} -a lang=${asciilang} -d manpage -b manpage -o ${manfile} ${txtfile}
WORKING_DIRECTORY ${BUILD_DIR}/${relpath2} WORKING_DIRECTORY ${BUILD_DIR}/${relpath2}
OUTPUT ${manfile} OUTPUT ${manfile}
DEPENDS ${txtfile} DEPENDS ${txtfile}