diff options
author | Allan McRae <allan@archlinux.org> | 2008-12-05 14:13:15 +1000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-01-03 00:08:42 -0600 |
commit | 1b7ff7a636b6ca6bbcb3953c681bd22166f4a6ca (patch) | |
tree | aedd19d964272545647105e2eff85b0c2c9e6c27 | |
parent | bb9b19a6c45e39bd617faa5eb47c074f9c12f94e (diff) |
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>
-rw-r--r-- | scripts/makepkg.sh.in | 4 |
1 files changed, 4 insertions, 0 deletions
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) |