new hook: post-install/01-remove-localized-manpages.sh

This commit is contained in:
Eivind Uggedal 2014-09-22 13:53:38 +00:00
parent 73aa3ce87a
commit 1bcb1ec77d

View File

@ -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
}