summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/pkg b/bin/pkg
index 2a19e62..43d245a 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -271,6 +271,11 @@ pkg_changelog () {
[ -r $PDIR/$1/changelog ] && view $PDIR/$1/changelog
}
+pkg_doc () {
+ # FIXME this sucks
+ [ -r $PDIR/*/doc/$1 ] && less $PDIR/*/doc/$1
+}
+
check_sed
case "$1" in
@@ -278,6 +283,7 @@ case "$1" in
changelog) pkg_changelog "$2" ;;
changeroot) pkg_changesrc "$2" ;;
delete) pkg_remove "$2" ;;
+ doc) pkg_doc "$2" ;;
info) pkg_info "$2" ;;
install) pkg_add "$2" ;;
list) pkg_list_installed ;;