summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-03 19:03:14 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-03 19:03:14 +0200
commitc3a478667651fbfdeeb63c5d60f8e069d0983860 (patch)
treef5b6b255897d9b857be8e0784d96037de5a9804d /bin/pkg
parentdca4023181c1be81f59c04219c37901dfaa12fc0 (diff)
bin/pkg: Use the new .collected for pkg doc
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg9
1 files changed, 4 insertions, 5 deletions
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"
}