diff options
Diffstat (limited to 'bin/pkg')
-rwxr-xr-x | bin/pkg | 20 |
1 files changed, 9 insertions, 11 deletions
@@ -192,23 +192,21 @@ populate_collected () { cd $PDIR/$1 || return info "Enabling documentation " if ([ -d man ]) { - for section in man/*; { - section=$(basename $section) - for manpage in man/$section/*; { - manpage=$(basename $manpage) - if (podchecker man/$section/$manpage &> /dev/null) { - pod2man -s $section -c "$1 package" -r "/home/derf" man/$section/$manpage > $PDIR/.collected/man/man$section/$manpage.$section - echo -n "+" - } else { - echo -n "." - } + for i in man/*/*; { + section=${i:h:t} + manpage=${i:t} + if (podchecker man/$section/$manpage &> /dev/null) { + pod2man -s $section -c "$1 package" -r "/home/derf" man/$section/$manpage > $PDIR/.collected/man/man$section/$manpage.$section + echo -n "+" + } else { + echo -n "." } } } if ([ -d bin ]) { for i in bin/*; { if (podchecker $i &> /dev/null) { - pod2man $i > $PDIR/.collected/man/man1/$(basename $i).1 + pod2man $i > $PDIR/.collected/man/man1/${i:t}.1 echo -n "+" } else { echo -n "." |