summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pkg26
1 files changed, 14 insertions, 12 deletions
diff --git a/bin/pkg b/bin/pkg
index 63015a0..b4d9989 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -157,13 +157,15 @@ check_deps () {
populate_collected () {
cd $PDIR/$1 || return
info "Enabling documentation "
- if ([ -d doc ]) {
- for i in doc/*; {
- if (podchecker $i &> /dev/null) {
- pod2man -c "$1 package" -r "/home/derf" $i > $PDIR/.collected/man/man1/$(basename $i).1
- echo -n "+"
- } else {
- echo -n "."
+ if ([ -d man ]) {
+ for section in man/*;
+ for i in man/$section/*; {
+ if (podchecker $i &> /dev/null) {
+ pod2man -c "$1 package" -r "/home/derf" $i > $PDIR/.collected/man/man$section/$(basename $i).$section
+ echo -n "+"
+ } else {
+ echo -n "."
+ }
}
}
}
@@ -186,11 +188,11 @@ populate_collected () {
genocide_collected () {
cd $PDIR/$1 || return
info "Removing documentation"
- if ([ -d doc ]) {
- for i in doc/*; {
- rm $PDIR/.collected/$i
- }
- }
+# if ([ -d man ]) {
+# for i in man/*/*; {
+# rm $PDIR/.collected/$i
+# }
+# }
if ([ -d bin ]) {
for i in bin/*; {
rm -f $PDIR/.collected/man/man1/$(basename $i).1