aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Marc-Antoine Perennou <Marc-Antoine@Perennou.com> 2017-02-09 17:34:54 +0100
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2017-02-17 17:54:39 +0100
commit572e65d9cbef0c05e10159723ccd21ff5c873d46 (patch)
tree3539d8a8d49510769bb696147f040c613f9a758e
parentd15113c505809477fcde40b05f020acb53959e89 (diff)
downloadpaludis-572e65d9cbef0c05e10159723ccd21ff5c873d46.tar.gz
paludis-572e65d9cbef0c05e10159723ccd21ff5c873d46.tar.xz
build: make asciidoc output to a tmp file
Change-Id: I189806f930422ed01b4f89804386d1ce3db92da5 Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com> Reviewed-on: https://galileo.mailstation.de/gerrit/8362 Reviewed-by: Saleem Abdulrasool <compnerd@compnerd.org>
-rw-r--r--src/clients/cave/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/clients/cave/CMakeLists.txt b/src/clients/cave/CMakeLists.txt
index e471389..c8bdbfa 100644
--- a/src/clients/cave/CMakeLists.txt
+++ b/src/clients/cave/CMakeLists.txt
@@ -201,7 +201,9 @@ if(NOT USE_PREBUILT_DOCUMENTATION)
add_custom_command(OUTPUT
"${CMAKE_CURRENT_BINARY_DIR}/cave.xml"
COMMAND
- asciidoc --doctype=manpage --backend=docbook --out-file "${CMAKE_CURRENT_BINARY_DIR}/cave.xml" --conf "${PROJECT_SOURCE_DIR}/misc/asciidoc.conf" "${CMAKE_CURRENT_BINARY_DIR}/cave.txt"
+ asciidoc --doctype=manpage --backend=docbook --out-file "${CMAKE_CURRENT_BINARY_DIR}/cave.xml.tmp" --conf "${PROJECT_SOURCE_DIR}/misc/asciidoc.conf" "${CMAKE_CURRENT_BINARY_DIR}/cave.txt"
+ COMMAND
+ mv "${CMAKE_CURRENT_BINARY_DIR}/cave.xml.tmp" "${CMAKE_CURRENT_BINARY_DIR}/cave.xml"
DEPENDS
"${PROJECT_SOURCE_DIR}/misc/asciidoc.conf"
"${CMAKE_CURRENT_BINARY_DIR}/cave.txt")
@@ -234,7 +236,9 @@ if(NOT USE_PREBUILT_DOCUMENTATION)
add_custom_command(OUTPUT
"${CMAKE_CURRENT_BINARY_DIR}/cave-${subcommand}.xml"
COMMAND
- asciidoc --doctype=manpage --backend=docbook --out-file "${CMAKE_CURRENT_BINARY_DIR}/cave-${subcommand}.xml" --conf "${PROJECT_SOURCE_DIR}/misc/asciidoc.conf" "${CMAKE_CURRENT_BINARY_DIR}/cave-${subcommand}.txt"
+ asciidoc --doctype=manpage --backend=docbook --out-file "${CMAKE_CURRENT_BINARY_DIR}/cave-${subcommand}.xml.tmp" --conf "${PROJECT_SOURCE_DIR}/misc/asciidoc.conf" "${CMAKE_CURRENT_BINARY_DIR}/cave-${subcommand}.txt"
+ COMMAND
+ mv "${CMAKE_CURRENT_BINARY_DIR}/cave-${subcommand}.xml.tmp" "${CMAKE_CURRENT_BINARY_DIR}/cave-${subcommand}.xml"
DEPENDS
"${PROJECT_SOURCE_DIR}/misc/asciidoc.conf"
"${CMAKE_CURRENT_BINARY_DIR}/cave-${subcommand}.txt")