mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 22:53:51 +02:00
common/hooks: remove remove-localized-manpages hook.
Allow packages to include localized man pages. Needed for manpages-l10n.
This commit is contained in:
parent
b73ebea394
commit
a6c6bcc651
1 changed files with 0 additions and 20 deletions
|
@ -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
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue