From: Joey Hess Date: Tue, 4 Dec 2007 20:13:54 +0000 (-0500) Subject: * Support versions of man that don't use -l. X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/565de32fed5b476d0003da7ebb4c35ac14b149c7 * Support versions of man that don't use -l. --- diff --git a/debian/changelog b/debian/changelog index 2333ee5..47a4867 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +mr (0.19) UNRELEASED; urgency=low + + * Support versions of man that don't use -l. + + -- Joey Hess Tue, 04 Dec 2007 15:13:26 -0500 + mr (0.18) unstable; urgency=low * darcs: Use record subcommand, there is no commit subcommand. Closes: #453501 diff --git a/mr b/mr index 3a729e4..f4a93b6 100755 --- a/mr +++ b/mr @@ -1250,7 +1250,10 @@ help = if [ ! -e "$MR_PATH" ]; then error "cannot find program path" fi - (pod2man -c mr "$MR_PATH" | man -l -) || error "pod2man or man failed" + 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" list = true config =