Browse Source

More changes to make_link_absolute, since return value and value (what Tom had a tendency

to do) don't mix and match happily.
master
freesource 23 years ago
parent
commit
0248fba79e
  1. 7
      BootRoot/Yard.pm

7
BootRoot/Yard.pm

@ -1724,11 +1724,14 @@ sub make_link_absolute {
my $link; my $link;
if ($target =~ m|^/|) { if ($target =~ m|^/|) {
$target; # Target is absolute, just return it return $target; # Target is absolute, just return it
} else { } else { ## and use return --freesource
$link = cleanup_link(dirname($file) . "/$target"); $link = cleanup_link(dirname($file) . "/$target");
} }
$link =~ s,^\.,,; # When there is one file dir eq . --freesource $link =~ s,^\.,,; # When there is one file dir eq . --freesource
return $link; return $link;

Loading…
Cancel
Save