From 9baf045b5c2b751acbd60ee136bf641bd5c81c31 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Thu, 10 Mar 2016 20:40:25 +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 261f4e1..2dad451 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -71,7 +71,7 @@ endforeach ()
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 ()
--
cgit v1.2.3-70-g09d2