From af61b01448d6208c8c66170eb88b96c725cbc05c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Mangano-Tarumi?= Date: Wed, 21 Nov 2018 21:41:55 -0500 Subject: [PATCH] substitute the @-markers in the man page --- CMakeLists.txt | 3 ++- opustags.1 | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 93be785..cc41865 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,7 @@ target_link_libraries(opustags libopustags) include(GNUInstallDirs) install(TARGETS opustags DESTINATION "${CMAKE_INSTALL_BINDIR}") -install(FILES opustags.1 DESTINATION "${CMAKE_INSTALL_MANDIR}/man1") +configure_file(opustags.1 . @ONLY) +install(FILES "${CMAKE_BINARY_DIR}/opustags.1" DESTINATION "${CMAKE_INSTALL_MANDIR}/man1") add_subdirectory(t) diff --git a/opustags.1 b/opustags.1 index dd5db30..f9d5271 100644 --- a/opustags.1 +++ b/opustags.1 @@ -1,4 +1,4 @@ -.TH opustags 1 "November 2018" "@PROJECT_NAME@ @PROJECT_VERSION" +.TH opustags 1 "November 2018" "@PROJECT_NAME@ @PROJECT_VERSION@" .SH NAME opustags \- Opus comment editor .SH SYNOPSIS