summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-08 15:25:12 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-08 15:25:12 +0200
commita997a03965a80dab0528d95c29208cb2b160458a (patch)
treec22e0a3ca4bd66bb6d3af0674a21de0a032b62ca /bin/pkg
parent5caeb3cdf852d5b55a6351791917cf8681368ad5 (diff)
bin/pkg: populate_collected: slightly nicer code
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg8
1 files changed, 5 insertions, 3 deletions
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 "."