diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-11-15 04:08:50 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-11-15 04:08:50 +0000 |
commit | e8fcf3b95839c3b33699c9d2412f7f83861908f9 (patch) | |
tree | 091a54da60ea9225ad3208ba3fd3a8ea9206688a /installman | |
parent | 43c8efd8a96392ed0e720af5c06ab52c6d53fcc4 (diff) | |
download | perl-e8fcf3b95839c3b33699c9d2412f7f83861908f9.tar.gz |
"link =" from utils.lst was being processed oddly.
p4raw-id: //depot/perl@13015
Diffstat (limited to 'installman')
-rwxr-xr-x | installman | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/installman b/installman index 0c146bde8c..63b781d2a3 100755 --- a/installman +++ b/installman @@ -1,5 +1,5 @@ #!./perl -w -BEGIN { @INC = ('lib') } +BEGIN { @INC = qw(lib) } use strict; use Config; use Getopt::Long; @@ -85,8 +85,11 @@ while (<UTILS>) { $_ = $1 if /#.*pod\s*=\s*(\S+)/; my ($where, $what) = m|^(.*?)/(\S+)|; pod2man($where, $opts{man1dir}, $opts{man1ext}, $what); - if (($where, $what) = m|#.*link\s*=\s*(\S+)/(\S+)|) { - pod2man($where, $opts{man1dir}, $opts{man1ext}, $what); + if (my ($where2, $what2) = m|#.*link\s*=\s*(\S+)/(\S+)|) { + my $old = "$opts{man1dir}/$what.$opts{man1ext}"; + my $new = "$opts{man1dir}/$what2.$opts{man1ext}"; + unlink($new); + link($old, $new); } } |