hooks/pre-pkg: prohibit /usr/doc, mention /usr/share/doc
This commit is contained in:
parent
f68d10a467
commit
9251941c99
2 changed files with 19 additions and 8 deletions
|
@ -3,10 +3,6 @@
|
|||
hook() {
|
||||
local f lnkat mandir=${PKGDESTDIR}/usr/share/man
|
||||
|
||||
if [ -d ${PKGDESTDIR}/usr/man ]; then
|
||||
msg_error "${pkgver}: /usr/man directory is not allowed, use /usr/share/man.\n"
|
||||
fi
|
||||
|
||||
if [ ! -d $mandir ] ||
|
||||
[ -z "$(find $mandir -regex '.*\.\(gz\|bz2\)' -print -quit)" ]; then
|
||||
return 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue