diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-07 22:02:39 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-07 22:02:39 +0200 |
commit | 61328cb12aa7795bb625c32c583be53046d7edb4 (patch) | |
tree | afcfa9d18d9ffc0f97e11c137aabd439b2dbe846 /bin | |
parent | 2a9190ab531511e8fd607aaa39ffb04486a376a0 (diff) |
bin/pkg: Support other manual categories
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkg | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -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 |