diff options
author | Rob Funk <rfunk@funknet.net> | 2004-06-18 04:57:38 +0000 |
---|---|---|
committer | Rob Funk <rfunk@funknet.net> | 2004-06-18 04:57:38 +0000 |
commit | 803a0c40f2323c8384e8efcb84fb79bfcc1aca82 (patch) | |
tree | 497a95efb4cc9b7015573916f702424f7bf868f6 /dist-tools | |
parent | a64a4d7197d8c6c63cbba7a8804e9d7c133e55d4 (diff) | |
download | fetchmail-803a0c40f2323c8384e8efcb84fb79bfcc1aca82.tar.gz fetchmail-803a0c40f2323c8384e8efcb84fb79bfcc1aca82.tar.bz2 fetchmail-803a0c40f2323c8384e8efcb84fb79bfcc1aca82.zip |
Make manServer compatible with modern groff installations
svn path=/trunk/; revision=3891
Diffstat (limited to 'dist-tools')
-rwxr-xr-x | dist-tools/manServer.pl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/dist-tools/manServer.pl b/dist-tools/manServer.pl index 964ba8a7..b2751340 100755 --- a/dist-tools/manServer.pl +++ b/dist-tools/manServer.pl @@ -2462,12 +2462,20 @@ sub doEqn1 sub initialise { + # Determine groff version if possible + my $groffver = `groff -v`; + $groffver =~ /^GNU groff version (\S+)/; + $groffver = $1; + # Parse the macro definition file for section names if (open(MACRO, "/usr/lib/tmac/tmac.an") || open(MACRO, "/usr/lib/tmac/an") || open(MACRO, "/usr/lib/groff/tmac/tmac.an") || + open(MACRO, "/usr/lib/groff/tmac/an.tmac") || open(MACRO, "/usr/share/tmac/tmac.an") || - open(MACRO, "/usr/share/groff/tmac/tmac.an") ) + open(MACRO, "/usr/share/groff/tmac/tmac.an") || + open(MACRO, "/usr/share/groff/tmac/an.tmac") || + open(MACRO, "/usr/share/groff/$groffver/tmac/an.tmac") ) { while (<MACRO>) { |