summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-09-06 11:47:43 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-09-06 11:47:43 +0200
commita95cc03983f85d06cc5e85e862850089cc11f6ee (patch)
treec52ec21188ba09453b64685c98fc03b5f0e228b9
parent5198586d56bb790d37e7aa1202e99c1219753088 (diff)
Added support for *roff manuals
-rwxr-xr-xbin/ct7
1 files changed, 5 insertions, 2 deletions
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); {