From: Graham Percival Date: Tue, 2 Feb 2010 13:36:08 +0000 (+0000) Subject: Build fix: weird external_href problem in translations. X-Git-Tag: release/2.13.12-1~5 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=13ca8011bc610b042062c22b36cdda3f3a920481;p=lilypond.git Build fix: weird external_href problem in translations. --- diff --git a/Documentation/lilypond-texi2html.init b/Documentation/lilypond-texi2html.init index 4a6e1b1582..64746f6051 100644 --- a/Documentation/lilypond-texi2html.init +++ b/Documentation/lilypond-texi2html.init @@ -928,9 +928,11 @@ sub lilypond_external_ref($$$$$$) # only lc() the last portion: my @htmlsplit = split('/', $href); - # change the last portion (the filename) - @htmlsplit[$#array] = lc( @htmlsplit[$#array] ); - $href = join("/", @htmlsplit); + # change the last portion (the filename), if it exists + if ($#array > 0) { + @htmlsplit[$#array] = lc( @htmlsplit[$#array] ); + $href = join("/", @htmlsplit); + } my $cross_ref = shift;