diff options
author | Vladimir Volovich <vvv@vsu.ru> | 2009-11-27 10:08:10 +0000 |
---|---|---|
committer | Vladimir Volovich <vvv@vsu.ru> | 2009-11-27 10:08:10 +0000 |
commit | ba9b56da74a94b4f046a42493bce4ce75957fd4e (patch) | |
tree | da9a251c194a783627085a9aa32752a690c5c13e /Build | |
parent | 41281e3bfb72c5303d837462d341aaf31d0601a6 (diff) |
use slightly different way to search for modules dir when "xindy" is a symlink
git-svn-id: svn://tug.org/texlive/trunk@16198 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/utils/xindy/user-commands/xindy.in | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Build/source/utils/xindy/user-commands/xindy.in b/Build/source/utils/xindy/user-commands/xindy.in index 09d5c8591bc..87fa6eea893 100644 --- a/Build/source/utils/xindy/user-commands/xindy.in +++ b/Build/source/utils/xindy/user-commands/xindy.in @@ -339,11 +339,9 @@ BEGIN { } elsif ( -d "/usr/share/xindy" ) { # FSH style $modules_dir = "/usr/share/xindy"; } elsif (-l $0) { # binaries may be symlinks e.g. in /usr/local/bin - my $try_dir = dirname(readlink($0)); - if (-d "$try_dir/../../texmf/xindy") { - $modules_dir = "$try_dir/../../texmf/xindy"; # texlive multiplatform style - } elsif (-d "$try_dir/../texmf/xindy") { - $modules_dir = "$try_dir/../texmf/xindy"; # texlive non-multiplatform style + my $try_dir = dirname(Cwd::realpath($0)); + if ($try_dir =~ m,/texmf/scripts/xindy$, && -d "$try_dir/../../xindy") { + $modules_dir = "$try_dir/../../xindy"; } else { die "$cmd: Cannot locate xindy modules directory"; } |