diff options
author | Mikhail Teterin <mi@FreeBSD.org> | 2005-07-18 23:58:37 +0000 |
---|---|---|
committer | Mikhail Teterin <mi@FreeBSD.org> | 2005-07-18 23:58:37 +0000 |
commit | 32735640dedfcf1751748634f89b62d4749b1acf (patch) | |
tree | d6ed632a141ae928b6357231986f64727d489177 /lang/tclX/files/patch-af | |
parent | BROKEN should be quoted here. (diff) |
Unbreak the manual pages installation and help file generation:
. when parsing man-files, do not choke on files
containing '.so man.macros';
. be ready for the .bz2 man-pages;
. do not use vendor's install-doc target at all -- install
the vendor's manual pages in post-install and declare
MLINKS to have bsd.port.mk do the Right Thing (TM) --
links instead of copies of the manual pages.
This may even work now :-)
Diffstat (limited to 'lang/tclX/files/patch-af')
-rw-r--r-- | lang/tclX/files/patch-af | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/tclX/files/patch-af b/lang/tclX/files/patch-af index 1e38676af12c..bab422b04e6e 100644 --- a/lang/tclX/files/patch-af +++ b/lang/tclX/files/patch-af @@ -8,7 +8,7 @@ # Where: -# o docdir is the directory containing the manual pages. # o maninfo is the path to a file that when sources returns a list of -@@ -64,5 +63,14 @@ +@@ -64,5 +63,16 @@ - set stat [catch { - open $manPage @@ -22,6 +22,8 @@ + + if {[string match *.gz $manPage]} { + set stat [catch {open "|gzip -d -c $manPage"} fh] ++ } elseif {[string match *.bz2 $manPage]} { ++ set stat [catch {open "|bzip2 -d -c $manPage"} fh] + } else { + set stat [catch {open $manPage} fh] + } @@ -31,6 +33,10 @@ - puts stderr "can't open \"$manPage\" $fh" + puts stderr "can't open \"$manPage\" $fh. (cwd is [pwd])" return +@@ -75,2 +89,3 @@ + switch -glob -- $line { ++ {.so man.macros} {} + .so* { @@ -114,3 +119,3 @@ -proc GenInputFile {docDir manInfoTbl tmpFile} { |