This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Links contained one slash too many
authorH.Merijn Brand <h.m.brand@xs4all.nl>
Tue, 11 Apr 2006 15:30:55 +0000 (15:30 +0000)
committerH.Merijn Brand <h.m.brand@xs4all.nl>
Tue, 11 Apr 2006 15:30:55 +0000 (15:30 +0000)
p4raw-id: //depot/metaconfig@27765

U/ln-all.pl

index bf3ff96..b94967b 100755 (executable)
@@ -31,7 +31,8 @@ while (<>) {
     s{^\s+$perl/U}{} or next;
     chomp;
     (my $f = $_) =~ s{.*/}{};
-    symlink "../$_", $f;
+    (my $l = "../$_") =~ s{//+}{/}g;
+    symlink $l, $f;
     }
 
 for (qw( Configure config_h.SH )) {