From a997a03965a80dab0528d95c29208cb2b160458a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 8 Jun 2008 15:25:12 +0200 Subject: bin/pkg: populate_collected: slightly nicer code --- bin/pkg | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/pkg b/bin/pkg index 37e59ef..1056906 100755 --- a/bin/pkg +++ b/bin/pkg @@ -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 "." -- cgit v1.2.3