summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
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 "."