summaryrefslogtreecommitdiff
path: root/Build
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 /Build
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 'Build')
-rw-r--r--Build/source/utils/xindy/user-commands/xindy.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/Build/source/utils/xindy/user-commands/xindy.in b/Build/source/utils/xindy/user-commands/xindy.in
index d1a5e2eb3ba..4d6b1f02f20 100644
--- a/Build/source/utils/xindy/user-commands/xindy.in
+++ b/Build/source/utils/xindy/user-commands/xindy.in
@@ -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);
}