diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-02 17:46:03 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-02 17:46:03 +0200 |
commit | 23ad6e0322b0b6b9e1d88b8a2db208312840ff68 (patch) | |
tree | 436fb419cf7048144c7a1778719a409765facf9c /bin/pkg | |
parent | e5351777aaa154e4f4bfb7af67ca8786b150bde2 (diff) |
bin/pkg: pkg_doc: Check for perldoc
Diffstat (limited to 'bin/pkg')
-rwxr-xr-x | bin/pkg | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -297,7 +297,13 @@ pkg_changelog () { pkg_doc () { # FIXME this sucks - [ -r $PDIR/*/doc/$1 ] && less $PDIR/*/doc/$1 + if ([ -r $PDIR/*/doc/$1 ]) { + less $PDIR/*/doc/$1 + } elif ([ -x $PDIR/*/bin/$1 ]) { + if (file $PDIR/*/bin/$1 | grep 'perl script text executable' &> /dev/null) { + perldoc $PDIR/*/bin/$1 + } + } } check_sed |