From 5a197162bfa3cb9709ffc401eb001e94bc4c5296 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Thu, 10 Mar 2016 20:26:35 +0100
Subject: Fix manpage generation
The manpages could end up in a wrong directory.
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ad131bf..32aba0c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -202,7 +202,7 @@ endforeach (page)
add_custom_target (docs ALL DEPENDS ${project_MAN_PAGES})
foreach (page ${project_MAN_PAGES})
- string (REGEX MATCH "\\.([0-9])" manpage_suffix "${page}")
+ string (REGEX MATCH "\\.([0-9])$" manpage_suffix "${page}")
install (FILES "${page}"
DESTINATION "${CMAKE_INSTALL_MANDIR}/man${CMAKE_MATCH_1}")
endforeach (page)
--
cgit v1.2.3-70-g09d2