diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-09-06 11:47:43 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-09-06 11:47:43 +0200 |
commit | a95cc03983f85d06cc5e85e862850089cc11f6ee (patch) | |
tree | c52ec21188ba09453b64685c98fc03b5f0e228b9 /bin | |
parent | 5198586d56bb790d37e7aa1202e99c1219753088 (diff) |
Added support for *roff manuals
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ct | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); { |