summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorVladimir Volovich <vvv@vsu.ru>2008-07-30 01:00:09 +0000
committerVladimir Volovich <vvv@vsu.ru>2008-07-30 01:00:09 +0000
commit1d5836caa365e1f2117c6794b9c3229cb68fa4dc (patch)
treefb7a7d7023b7dc3aaab229ad2fd46b3a392bdc0b /Master
parent5d1c0a0326bd33259af0607074dd893b87f6424f (diff)
if the binaries directory is a symlink, clisp may get confused because of relative paths used to get to the texmf tree, so we resolve the path using Cwd::realpath()
bug found by Richard Koch, where MacTeX uses layout where /usr/texbin is a symlink to e.g. /usr/local/texlive/2008/bin/universal-darwin git-svn-id: svn://tug.org/texlive/trunk@9901 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-xMaster/texmf/scripts/xindy/xindy.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/Master/texmf/scripts/xindy/xindy.pl b/Master/texmf/scripts/xindy/xindy.pl
index 3c0590d51fb..ffbf4bc4d9b 100755
--- a/Master/texmf/scripts/xindy/xindy.pl
+++ b/Master/texmf/scripts/xindy/xindy.pl
@@ -286,6 +286,7 @@ BEGIN {
# Determine environment. Where is our library directory, and our modules?
use File::Basename;
+use Cwd;
our ($cmd_dir, $cmd, $xindy_run, $lib_dir, $modules_dir, $path_sep);
BEGIN {
$cmd_dir = dirname($0);
@@ -337,6 +338,9 @@ BEGIN {
} else {
die "$cmd: Cannot locate xindy modules directory";
}
+ # if $cmd_dir or $lib_dir is a symlink, clisp may get confused
+ # because of relative paths above, so we resolve the path
+ $modules_dir = Cwd::realpath($modules_dir);
}