From: Joey Hess Date: Tue, 3 Nov 2009 00:23:54 +0000 (-0500) Subject: Merge branch 'master' of git://github.com/geoffdavis/mr X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/7993c3fea43f94925a6a4e0a1f3f5731aeb80fdb?hp=8be01e5db1ac3000ee7be0d82765fa6f7332db3e Merge branch 'master' of git://github.com/geoffdavis/mr --- diff --git a/mr b/mr index eb766d4..0a78df5 100755 --- a/mr +++ b/mr @@ -1629,14 +1629,26 @@ hg_trusted_checkout = hg clone $url $repo darcs_trusted_checkout = darcs get $url $repo git_bare_trusted_checkout = git clone --bare $url $repo + help = + case `uname -s` in + SunOS) + SHOWMANFILE="/usr/bin/man -f" + ;; + Darwin) + SHOWMANFILE="/usr/bin/man" + ;; + *) + SHOWMANFILE="/usr/bin/man -l" + ;; + esac if [ ! -e "$MR_PATH" ]; then error "cannot find program path" fi tmp=$(mktemp -t mr.XXXXXXXXXX) || error "mktemp failed" trap "rm -f $tmp" exit pod2man -c mr "$MR_PATH" > "$tmp" || error "pod2man failed" - man -l "$tmp" || error "man failed" + $SHOWMANFILE "$tmp" || error "man failed" list = true config = bootstrap =