new hook: post-install/01-remove-localized-manpages.sh
This commit is contained in:
parent
73aa3ce87a
commit
1bcb1ec77d
1 changed files with 18 additions and 0 deletions
18
common/hooks/post-install/01-remove-localized-manpages.sh
Normal file
18
common/hooks/post-install/01-remove-localized-manpages.sh
Normal 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
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue