mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
parent
1149e03396
commit
80b21cfbc3
1 changed files with 6 additions and 1 deletions
|
@ -234,8 +234,13 @@ if(GENERATE_MANPAGES)
|
||||||
set(gzfile ${BUILD_DIR}/${relpath2}/${basename}.gz)
|
set(gzfile ${BUILD_DIR}/${relpath2}/${basename}.gz)
|
||||||
set(manfile ${BUILD_DIR}/${relpath2}/${basename})
|
set(manfile ${BUILD_DIR}/${relpath2}/${basename})
|
||||||
|
|
||||||
|
if (lang STREQUAL default)
|
||||||
|
set(asciilang en)
|
||||||
|
else()
|
||||||
|
set(asciilang ${lang})
|
||||||
|
endif()
|
||||||
add_custom_command(
|
add_custom_command(
|
||||||
COMMAND ${ASCIIDOC_EXECUTABLE} -d manpage -b docbook -o ${xmlfile} - < ${txtfile}
|
COMMAND ${ASCIIDOC_EXECUTABLE} -a lang=${asciilang} -d manpage -b docbook -o ${xmlfile} - < ${txtfile}
|
||||||
WORKING_DIRECTORY ${BUILD_DIR}/${relpath2}
|
WORKING_DIRECTORY ${BUILD_DIR}/${relpath2}
|
||||||
OUTPUT ${xmlfile}
|
OUTPUT ${xmlfile}
|
||||||
DEPENDS ${txtfile}
|
DEPENDS ${txtfile}
|
||||||
|
|
Loading…
Reference in a new issue