From a6c6bcc651e66f1262a1b0ef42c205e37b36bec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Rolim?= Date: Sun, 23 Aug 2020 20:27:21 -0300 Subject: [PATCH] common/hooks: remove remove-localized-manpages hook. Allow packages to include localized man pages. Needed for manpages-l10n. --- .../01-remove-localized-manpages.sh | 20 ------------------- 1 file changed, 20 deletions(-) delete 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 deleted file mode 100644 index bee8d9d84e6..00000000000 --- a/common/hooks/post-install/01-remove-localized-manpages.sh +++ /dev/null @@ -1,20 +0,0 @@ -# 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[0-9n]|${mandir}/man[013][fp]) - continue;; - ${mandir}/cat[0-9n]|${mandir}/cat[013][fp]) - continue;; - esac - - rm -rf ${section} - done -}