1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 00:08:50 -05:00

makepkg: add fallback for when MAN_DIRS is unset

This prevents makepkg compressing every file when MAN_DIRS is not
supplied in makepkg.conf

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2008-12-05 14:13:15 +10:00 committed by Dan McGee
parent bb9b19a6c4
commit 1b7ff7a636

View File

@ -719,6 +719,10 @@ tidy_install() {
if [ "$(check_option zipman)" = "y" ]; then
msg2 "$(gettext "Compressing man and info pages...")"
local manpage ext file link hardlinks hl
if [ -z "${MAN_DIRS[*]}" ]; then
# fall back to default value
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
fi
find ${MAN_DIRS[@]} -type f 2>/dev/null |
while read manpage ; do
# check file still exists (potentially compressed with hard link)