summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2008-12-05 05:13:15 +0100
committerDan McGee <dan@archlinux.org>2009-01-03 07:08:42 +0100
commit1b7ff7a636b6ca6bbcb3953c681bd22166f4a6ca (patch)
treeaedd19d964272545647105e2eff85b0c2c9e6c27 /scripts
parentbb9b19a6c45e39bd617faa5eb47c074f9c12f94e (diff)
downloadpacman-1b7ff7a636b6ca6bbcb3953c681bd22166f4a6ca.tar.gz
pacman-1b7ff7a636b6ca6bbcb3953c681bd22166f4a6ca.tar.xz
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in4
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)