From d19532a45f006284fbc6ad42f447a4562caf2cad Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Mon, 28 May 2018 11:02:05 +0200 Subject: [PATCH] d/rules: add version to perf man pages Signed-off-by: Stoiko Ivanov --- debian/rules | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/debian/rules b/debian/rules index 39f5cb5..444b4ba 100755 --- a/debian/rules +++ b/debian/rules @@ -138,7 +138,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_install_mark: .compile_mark .modules_compile_mark