From df18374ab6c64ccf6eeeb361238c5f08935076fa Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Tue, 12 Jan 2016 17:00:34 +0100 Subject: xmandoc: strip version to show current manpage. --- xmandoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmandoc') diff --git a/xmandoc b/xmandoc index 46348f5..1261108 100755 --- a/xmandoc +++ b/xmandoc @@ -3,6 +3,6 @@ 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 + while read -r pkg page; do + xbps-query --cat=$page ${pkg%-*} | mandoc -a done -- cgit 1.4.1