From 1d5836caa365e1f2117c6794b9c3229cb68fa4dc Mon Sep 17 00:00:00 2001 From: Vladimir Volovich Date: Wed, 30 Jul 2008 01:00:09 +0000 Subject: 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 --- Build/source/utils/xindy/user-commands/xindy.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Build') 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); } -- cgit v1.2.3