[pve-devel] [PATCH kernel 4.15 3/3] d/rules: add version to perf man pages

Stoiko Ivanov s.ivanov at proxmox.com
Mon May 28 11:04:48 CEST 2018


Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 debian/rules | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 1097ab5..ad21471 100755
--- a/debian/rules
+++ b/debian/rules
@@ -141,7 +141,10 @@ binary: install
 	mkdir -p debian/${LINUX_TOOLS_PKG}/usr/bin
 	mkdir -p debian/${LINUX_TOOLS_PKG}/usr/share/man/man1
 	install -m 755 ${BUILD_DIR}/${KERNEL_SRC}/tools/perf/perf debian/${LINUX_TOOLS_PKG}/usr/bin/perf_$(KERNEL_MAJMIN)
-	install -m644 ${BUILD_DIR}/${KERNEL_SRC}/tools/perf/Documentation/*.1 debian/${LINUX_TOOLS_PKG}/usr/share/man/man1
+	for i in ${BUILD_DIR}/${KERNEL_SRC}/tools/perf/Documentation/*.1; do \
+	    fname="$${i##*/}"; manname="$${fname%.1}"; \
+	    install -m644 "$$i" "debian/${LINUX_TOOLS_PKG}/usr/share/man/man1/$${manname}_$(KERNEL_MAJMIN).1"; \
+	done
 	touch $@
 
 .headers_prepare_mark: .config_mark
-- 
2.11.0





More information about the pve-devel mailing list