From 4d2f25c374947b21b142f244668a5aad2e600ccc Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 15 Apr 2015 17:14:32 +0200 Subject: add xmandoc --- xmandoc | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 xmandoc (limited to 'xmandoc') diff --git a/xmandoc b/xmandoc new file mode 100755 index 0000000..7a6486e --- /dev/null +++ b/xmandoc @@ -0,0 +1,8 @@ +#!/bin/sh +# xmandoc MANPAGE - read manpage of possibly not installed package + +xlocate "man/man..?/$1\.[0-9]" 2>/dev/null | + { grep . || { echo "xmandoc: No entry for $1 found." 1>&2; exit 1; } } | + while read pkg page; do + xbps-query --cat=$page $pkg | mandoc -a + done -- cgit 1.4.1