From a95cc03983f85d06cc5e85e862850089cc11f6ee Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 6 Sep 2009 11:47:43 +0200 Subject: Added support for *roff manuals --- bin/ct | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/ct b/bin/ct index a5ff803..1f9eaf9 100755 --- a/bin/ct +++ b/bin/ct @@ -578,7 +578,7 @@ function check_prereqs { function populate_collected { cd $PKG_DIR/$1 || return typeset -i bins=0 bino=0 mans=0 mano=0 - typeset man section manpage file + typeset man section manpage file target wrap_info $1 if [[ ! -d bin && ! -d man ]] { @@ -588,8 +588,11 @@ function populate_collected { for man in man/*/*(N); { section=${man:h:t} manpage=${man:t} + target=$PKG_DIR/.collected/man/man$section/${manpage%.pod}.$section if podchecker man/$section/$manpage &> /dev/null; then - pod2man -u -s $section -c "$1 package" -r $HOME man/$section/$manpage > $PKG_DIR/.collected/man/man$section/${manpage%.pod}.$section + pod2man -u -s $section -c "$1 package" -r $HOME man/$section/$manpage > $target + elif [[ $manpage != *.pod && ! -e $target ]]; then + ln -s ../../../$1/man/$section/$manpage $target fi } for file in bin/*(N); { -- cgit v1.2.3