bash-completion: fix for openbsd-man

This commit is contained in:
Eivind Uggedal 2014-10-01 10:39:18 +00:00
parent 00d5dd40eb
commit 5498446f79
2 changed files with 15 additions and 1 deletions

View file

@ -0,0 +1,14 @@
--- completions/man.orig
+++ completions/man
@@ -57,7 +57,10 @@ _man()
fi
local manpath
- if [[ $OSTYPE == *@(darwin|linux|freebsd|cygwin)* ]] || _userland GNU; then
+ if [[ -r /etc/man.conf ]]; then
+ manpath=$(eval echo $(awk '/_default/ { print $2 }' /etc/man.conf))
+ manpath=${manpath// /:}
+ elif [[ $OSTYPE == *@(darwin|linux|freebsd|cygwin)* ]] || _userland GNU; then
manpath=$( manpath 2>/dev/null || command man --path )
else
manpath=$MANPATH

View file

@ -1,7 +1,7 @@
# Template file for 'bash-completion'
pkgname=bash-completion
version=2.1
revision=4
revision=5
noarch="yes"
build_style=gnu-configure
makedepends="bash"