diff options
author | terminaldweller <thabogre@gmail.com> | 2022-07-07 06:30:23 +0000 |
---|---|---|
committer | terminaldweller <thabogre@gmail.com> | 2022-07-07 06:30:23 +0000 |
commit | ed09c5f82ed5ef4932f67af72551807e13a4412d (patch) | |
tree | 6ad4a8bcbd08a9cf8b6b3e6a2871d200b478d9eb /bin/xman | |
parent | updated haproxy (diff) | |
download | scripts-ed09c5f82ed5ef4932f67af72551807e13a4412d.tar.gz scripts-ed09c5f82ed5ef4932f67af72551807e13a4412d.zip |
a lot of updates
Diffstat (limited to 'bin/xman')
-rwxr-xr-x | bin/xman | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/xman b/bin/xman new file mode 100755 index 0000000..5f4efed --- /dev/null +++ b/bin/xman @@ -0,0 +1,9 @@ +#!/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 -r pkg page; do + page=${page#* -> } + xbps-query --cat=$page ${pkg%-*} | mandoc -O width=205 -a + done |