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 bee8d9d84e..0000000000 --- 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 -}