From 1bcb1ec77d2d934a8816988c5721cc1b9d7cb568 Mon Sep 17 00:00:00 2001 From: Eivind Uggedal Date: Mon, 22 Sep 2014 13:53:38 +0000 Subject: [PATCH] new hook: post-install/01-remove-localized-manpages.sh --- .../01-remove-localized-manpages.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 common/hooks/post-install/01-remove-localized-manpages.sh diff --git a/common/hooks/post-install/01-remove-localized-manpages.sh b/common/hooks/post-install/01-remove-localized-manpages.sh new file mode 100644 index 00000000000..af487d473fc --- /dev/null +++ b/common/hooks/post-install/01-remove-localized-manpages.sh @@ -0,0 +1,18 @@ +# This hook removes localized man(1) files + +hook() { + local section mandir=${PKGDESTDIR}/usr/share/man + + for section in ${mandir}/*; do + if ! [ -d ${section} ]; then + continue + fi + + case ${section} in + ${mandir}/man?) + continue;; + esac + + rm -rf ${section} + done +}