From aa7b140b5b497d49d6add907482e2df7dc6ae1c1 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 7 Jun 2008 14:55:44 +0200 Subject: Also use pod for doc/ --- bin/pkg | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/pkg b/bin/pkg index 04e7199..908096a 100755 --- a/bin/pkg +++ b/bin/pkg @@ -158,7 +158,12 @@ populate_collected () { cd $PDIR/$1 || return info "Enabling documentation " if ([ -d doc ]) { - cp doc/* $PDIR/.collected/doc/ + for i in doc/*; { + if (podchecker $i &> /dev/null) { + pod2man -c "$1 Documentation" -r "" $i > $PDIR/.collected/man/man1/$(basename $i).1 + } + echo -n "." + } } if ([ -d bin ]) { for i in bin/*; { -- cgit v1.2.3