From c3a478667651fbfdeeb63c5d60f8e069d0983860 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 3 Jun 2008 19:03:14 +0200 Subject: bin/pkg: Use the new .collected for pkg doc --- bin/pkg | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'bin/pkg') diff --git a/bin/pkg b/bin/pkg index 514da64..95e2488 100755 --- a/bin/pkg +++ b/bin/pkg @@ -311,11 +311,10 @@ pkg_changelog () { } pkg_doc () { - # FIXME this globbing sucks - if (file $PDIR/*/bin/$1 | grep 'perl script text executable' &> /dev/null) { - perldoc $PDIR/*/bin/$1 - } elif ([ -r $PDIR/*/doc/$1 ]) { - less $PDIR/*/doc/$1 + if ([ -r $PDIR/.collected/man/$1 ]) { + man $PDIR/.collected/man/$1 + } elif ([ -r $PDIR/.collected/doc/$1 ]) { + less $PDIR/.collected/doc/$1 } else { echo "No documentation found" } -- cgit v1.2.3