vp-build/common/hooks/post-install/01-remove-localized-manpages.sh

19 lines
276 B
Bash
Raw Normal View History

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