diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-08 15:25:12 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-08 15:25:12 +0200 |
commit | a997a03965a80dab0528d95c29208cb2b160458a (patch) | |
tree | c22e0a3ca4bd66bb6d3af0674a21de0a032b62ca /bin/pkg | |
parent | 5caeb3cdf852d5b55a6351791917cf8681368ad5 (diff) |
bin/pkg: populate_collected: slightly nicer code
Diffstat (limited to 'bin/pkg')
-rwxr-xr-x | bin/pkg | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -157,9 +157,11 @@ populate_collected () { info "Enabling documentation " if ([ -d man ]) { for section in man/*; { - for i in $section/*; { - if (podchecker $i &> /dev/null) { - pod2man -c "$1 package" -r "/home/derf" $i > $PDIR/.collected/man/man$(basename $section)/$(basename $i).$(basename $section) + section=$(basename $section) + for manpage in man/$section/*; { + manpage=$(basename $manpage) + if (podchecker man/$section/$manpage &> /dev/null) { + pod2man -c "$1 package" -r "/home/derf" man/$section/$manpage > $PDIR/.collected/man/man$section/$manpage.$section echo -n "+" } else { echo -n "." |