From 565de32fed5b476d0003da7ebb4c35ac14b149c7 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 4 Dec 2007 15:13:54 -0500 Subject: [PATCH] * Support versions of man that don't use -l. --- debian/changelog | 6 ++++++ mr | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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 = -- 2.39.5