From 1b7ff7a636b6ca6bbcb3953c681bd22166f4a6ca Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Fri, 5 Dec 2008 14:13:15 +1000 Subject: 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 Signed-off-by: Dan McGee --- scripts/makepkg.sh.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index b3a0200a..5fdd4b27 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -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) -- cgit v1.2.3-70-g09d2